当前位置: 首页>>代码示例>>C#>>正文


C# RestServiceClient.Remove方法代码示例

本文整理汇总了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);
 }
开发者ID:dtafe,项目名称:vnr,代码行数:7,代码来源:Att_TAMController.cs

示例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);
 }
开发者ID:dtafe,项目名称:vnr,代码行数:12,代码来源:Lau_MachineOfLineController.cs

示例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);
 }
开发者ID:dtafe,项目名称:vnr,代码行数:12,代码来源:Can_MealAllowanceToMoneyController.cs

示例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);
        }
开发者ID:dtafe,项目名称:vnr,代码行数:13,代码来源:Cat_LaundryController.cs

示例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);
 }
开发者ID:dtafe,项目名称:vnr,代码行数:12,代码来源:Hre_ContractController.cs

示例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);
 }
开发者ID:dtafe,项目名称:vnr,代码行数:14,代码来源:Cat_DayOffController.cs

示例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);
 }
开发者ID:dtafe,项目名称:vnr,代码行数:17,代码来源:Sys_GroupPermissionController.cs

示例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);
        }
开发者ID:dtafe,项目名称:vnr,代码行数:13,代码来源:Sys_GroupPermissionController.cs


注:本文中的RestServiceClient.Remove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。