本文整理汇总了C#中RestServiceClient.Delete方法的典型用法代码示例。如果您正苦于以下问题:C# RestServiceClient.Delete方法的具体用法?C# RestServiceClient.Delete怎么用?C# RestServiceClient.Delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RestServiceClient
的用法示例。
在下文中一共展示了RestServiceClient.Delete方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Remove
public ActionResult Remove(Guid id)
{
var service = new RestServiceClient<Att_WorkdayModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
var result = service.Delete(_Hrm_Hre_Service, "api/Att_WorkDay/", id);
return Json(result);
}
示例2: Remove
public ActionResult Remove(Guid id)
{
var service = new RestServiceClient<Can_CanteenModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Can_Service);
var result = service.Delete(_hrm_Can_Service, "api/Can_Canteen/", id);
return Json(result);
}
示例3: Remove
public ActionResult Remove(string id)
{
var service = new RestServiceClient<CatElementModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
var result = service.Delete(_hrm_Hr_Service, "api/CatElement/", id);
return Json(result);
}
示例4: Delete
/// <summary>
/// Delete bằng id
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ActionResult Delete(string id)
{
var service = new RestServiceClient<Cat_SyncModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
var result = service.Delete(_hrm_Hr_Service, "api/Cat_Sync/", Common.ConvertToGuid(id));
return Json(result);
}
示例5: Remove
/// <summary>
/// Chuyển trạng thái IsDelete = true
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ActionResult Remove(string id)
{
var service = new RestServiceClient<Rec_CandidateModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
var result = service.Delete(_Hrm_Hre_Service, "api/Rec_Candidate/", id);
return Json(result);
}
示例6: Remove
public ActionResult Remove(Guid id)
{
var service = new RestServiceClient<Hre_ProfileQualificationModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
var result = service.Delete(_hrm_Hr_Service, "api/Hre_ProfileQualification/", id);
return Json(result);
}
示例7: Remove
public ActionResult Remove(Guid id)
{
var service = new RestServiceClient<Sys_ReleaseNoteModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Sys_Service);
var result = service.Delete(_hrm_Sys_Service, Route, id);
return Json(result);
}
示例8: Delete
/// <summary>
/// Delete bằng id
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ActionResult Delete(Guid id)
{
var service = new RestServiceClient<Sys_ResourceModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Sys_Service);
var result = service.Delete(_hrm_Sys_Service, "api/SysResource/", id);
return Json(result);
}
示例9: Delete
/// <summary>
/// Delete bằng id
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ActionResult Delete(Guid id)
{
var service = new RestServiceClient<Rec_SourceAdsModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
var result = service.Delete(_Hrm_Hre_Service, "api/Rec_SourceAds/", id);
return Json(result);
}
示例10: Delete
/// <summary>
/// Delete bằng id
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ActionResult Delete(Guid id)
{
var service = new RestServiceClient<Cat_SupplierModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
var result = service.Delete(_hrm_Hr_Service, "api/Cat_Brand/", id);
return Json(result);
}
示例11: Remove
public ActionResult Remove(Guid id)
{
//var isAccess = CheckPermission(UserId, PrivilegeType.Delete, ConstantPermission.Hre_Qualification);
//if (!isAccess)
//{
// return PartialView("AccessDenied");
//}
var service = new RestServiceClient<Hre_ProfileLanguageLevelModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
var result = service.Delete(_hrm_Hr_Service, "api/Hre_ProfileLanguage/", id);
return Json(result);
}
示例12: Delete
/// <summary>
/// Delete bằng id
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ActionResult Delete(Guid id)
{
var isAccess = CheckPermission(UserId, PrivilegeType.Delete, ConstantPermission.Sys_ProcessApproved);
if (!isAccess)
{
return PartialView("AccessDenied");
}
var service = new RestServiceClient<Sys_ProcessApprovedModel>();
service.SetCookies(this.Request.Cookies, _hrm_Sys_Service);
var result = service.Delete(_hrm_Sys_Service, "api/Sys_ProcessApproved/", id);
return Json(result);
}
示例13: Remove
/// <summary>
/// Delete bằng id
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ActionResult Remove(Guid id)
{
//var isAccess = CheckPermission(UserId, PrivilegeType.Delete, ConstantPermission.Cat_Export);
//if (!isAccess)
//{
// return PartialView("AccessDenied");
//}
var service = new RestServiceClient<CatExportModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
var result = service.Delete(_hrm_Hr_Service, "api/CatExport/", id);
return Json(result);
}
示例14: Remove
public ActionResult Remove(Guid id)
{
var isAccess = CheckPermission(UserId, PrivilegeType.Delete, ConstantPermission.Sys_ReleaseNote);
if (!isAccess)
{
return PartialView(ConstantMessages.AccessDenied);
}
var service = new RestServiceClient<Sys_ReleaseNoteModel>();
service.SetCookies(this.Request.Cookies, _hrm_Sys_Service);
var result = service.Delete(_hrm_Sys_Service, Route, id);
return Json(result);
}
示例15: RemoveSelected
public ActionResult RemoveSelected(List<Guid> selectedIds)
{
var computeWorkDay = new List<Att_ComputeWorkDayModel>();
if (selectedIds != null)
{
var service = new RestServiceClient<Att_ComputeWorkDayModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
foreach (var id in selectedIds)
{
service.Delete(_Hrm_Hre_Service, "api/Att_ComputeWorkDay/", id);
}
}
return Json("");
}