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


C# RestServiceClient.Delete方法代码示例

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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