本文整理汇总了C#中RestServiceClient.Remove方法的典型用法代码示例。如果您正苦于以下问题:C# RestServiceClient.Remove方法的具体用法?C# RestServiceClient.Remove怎么用?C# RestServiceClient.Remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RestServiceClient
的用法示例。
在下文中一共展示了RestServiceClient.Remove方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Remove
public ActionResult Remove(Guid id)
{
var service = new RestServiceClient<Att_TAMModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
var result = service.Remove(_Hrm_Hre_Service, "api/Att_TAM/", id);
return Json(result);
}
示例2: Remove
/// <summary>
/// Chuyển trạng thái IsDelete = true
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ActionResult Remove(Guid id)
{
var service = new RestServiceClient<Lau_MachineOfLineModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Lau_Service);
var result = service.Remove(_hrm_Lau_Service, "api/MachineOfLine/", id);
return Json(result);
}
示例3: Remove
/// <summary>
/// Chuyển trạng thái IsDelete = true
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ActionResult Remove(Guid id)
{
var service = new RestServiceClient<Can_MealAllowanceToMoneyModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Can_Service);
var result = service.Remove(_hrm_Can_Service, "api/Can_MealAllowanceToMoney/", id);
return Json(result);
}
示例4: Remove
/// <summary>
/// Chuyển trạng thái IsDelete = true
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ActionResult Remove(Guid id)
{
var service = new RestServiceClient<CatLaundryModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
var result = service.Remove(_hrm_Hr_Service, "api/CatLaundry/", id);
return Json(result);
}
示例5: Remove
public ActionResult Remove(Guid id)
{
//var isAccess = CheckPermission(UserId, PrivilegeType.Delete, ConstantPermission.Hre_Contract);
//if (!isAccess)
//{
// return PartialView("AccessDenied");
//}
var service = new RestServiceClient<Hre_ContractModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
var result = service.Remove(_hrm_Hr_Service, "api/Hre_Contract/", id);
return Json(result);
}
示例6: Remove
/// <summary>
/// Chuyển trạng thái IsDelete = true
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ActionResult Remove(Guid id)
{
bool delete = false;
var service = new RestServiceClient<CatDayOffModel>(UserLogin);
service.SetCookies(this.Request.Cookies, _hrm_Hre_Service);
var result = service.Remove(_hrm_Hre_Service, "api/CatDayOff/", id);
return Json(result);
}
示例7: Remove
/// <summary>
/// Chuyển trạng thái IsDelete = true
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ActionResult Remove(Guid id)
{
var isAccess = CheckPermission(UserId, PrivilegeType.Delete, ConstantPermission.Sys_GroupPermission);
if (!isAccess)
{
return PartialView("AccessDenied");
}
var service = new RestServiceClient<Sys_GroupPermissionModel>();
service.SetCookies(this.Request.Cookies, hrm_Sys_Service);
var result = service.Remove(hrm_Sys_Service, "api/Sys_GroupPermission/", id);
return Json(result);
}
示例8: Remove
/// <summary>
/// Chuyển trạng thái IsDelete = true
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ActionResult Remove(Guid id)
{
var service = new RestServiceClient<Sys_GroupPermissionModel>(UserLogin);
service.SetCookies(this.Request.Cookies, hrm_Sys_Service);
var result = service.Remove(hrm_Sys_Service, "api/Sys_GroupPermission/", id);
return Json(result);
}