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


C# RestServiceClient.Put方法代码示例

本文整理汇总了C#中RestServiceClient.Put方法的典型用法代码示例。如果您正苦于以下问题:C# RestServiceClient.Put方法的具体用法?C# RestServiceClient.Put怎么用?C# RestServiceClient.Put使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在RestServiceClient的用法示例。


在下文中一共展示了RestServiceClient.Put方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Add

 /// <summary>
 /// Tạo mời một Can_Canteen
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public ActionResult Add([Bind] Can_CanteenModel model)
 {
     var service = new RestServiceClient<Can_CanteenModel>(UserLogin);
     service.SetCookies(this.Request.Cookies, _hrm_Can_Service);
     var result = service.Put(_hrm_Can_Service, "api/Can_Canteen/", model);
     return Json(result);
 }
开发者ID:dtafe,项目名称:vnr,代码行数:12,代码来源:Can_CanteenController.cs

示例2: Add

 /// <summary>
 /// Tạo mời một AttGrade
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public ActionResult Add([Bind] Sal_GradeModel model)
 {
     var service = new RestServiceClient<Sal_InsuranceSalaryModel>(UserLogin);
     service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
     var result = service.Put(_hrm_Hr_Service, "api/Sal_InsuranceSalary/", model);
     return Json(result);
 }
开发者ID:dtafe,项目名称:vnr,代码行数:12,代码来源:Sal_InsuranceSalaryController.cs

示例3: ReadGrid

 public ActionResult ReadGrid([DataSourceRequest] DataSourceRequest request, int id)
 {
     var service = new RestServiceClient<IEnumerable<Sys_GroupUserModel>>();
     service.SetCookies(Request.Cookies, _hrm_Sys_Service);
     var result = service.Put(_hrm_Sys_Service, "api/Sys_GroupUser/", id).ToList();
     return Json(result.ToDataSourceResult(request));
 } 
开发者ID:dtafe,项目名称:vnr,代码行数:7,代码来源:Sys_GroupUserController.cs

示例4: Add

 public ActionResult Add([Bind] Sys_GroupUserModel model)
 {
     var service = new RestServiceClient<Sys_GroupUserModel>();
     service.SetCookies(this.Request.Cookies, _hrm_Sys_Service);
     var result = service.Put(_hrm_Sys_Service, "api/Sys_GroupUser/", model);
     return Json(result);
 }
开发者ID:dtafe,项目名称:vnr,代码行数:7,代码来源:Sys_GroupUserController.cs

示例5: Add

 /// <summary>
 /// Tạo mời một AttWorkDay
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public ActionResult Add([Bind] Att_WorkdayModel model)
 {
     var service = new RestServiceClient<Att_WorkdayModel>(UserLogin);
     service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
     var result = service.Put(_Hrm_Hre_Service, "api/Att_WorkDay/", model);
     return Json(result);
 }
开发者ID:dtafe,项目名称:vnr,代码行数:12,代码来源:Att_WorkdayController.cs

示例6: Create

        /// <summary>
        /// Tạo mời một CatCountry
        /// </summary>
        /// <param name="request"></param>
        /// <param name="model"></param>
        /// <returns></returns>
        public ActionResult Create([DataSourceRequest] DataSourceRequest request, [Bind] CatOvertimeTypeModel model)
        {
       
            var serviceGet = new RestServiceClient<IEnumerable<CatOvertimeTypeModel>>(UserLogin);
            var list = serviceGet.Get(_hrm_Hr_Service, "api/CatOvertimeType/");
            var l = serviceGet.Get(_hrm_Hr_Service, "api/CatOvertimeType/", model.ID);
            foreach (var item in list)
            {
                if (model.Code == item.Code && model.TypeTemp == item.TypeTemp)
                {
                    ModelState.AddModelError("PaymentType", "Đã tồn tại phương thức chi trả với mã này!");
                }

            }
            var result = new CatOvertimeTypeModel();
            if (ModelState.IsValid)
            {
                var service = new RestServiceClient<CatOvertimeTypeModel>(UserLogin);
                service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
                result = service.Put(_hrm_Hr_Service, "api/CatOvertimeType/", model);
                return Json(result);
            }
            return Json(new[] { result }.ToDataSourceResult(request, ModelState));

        }
开发者ID:dtafe,项目名称:vnr,代码行数:31,代码来源:Cat_OvertimeTypeController.cs

示例7: Add

 public ActionResult Add([Bind] CatResignReasonModel model)
 {
 
     var service = new RestServiceClient<Cat_OvertimeResonModel>(UserLogin);
     service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
     var result = service.Put(_hrm_Hr_Service, "api/Cat_OvertimeReson/", model);
     return Json(result);
 }
开发者ID:dtafe,项目名称:vnr,代码行数:8,代码来源:Cat_OvertimeResonController.cs

示例8: Edit

        public ActionResult Edit([DataSourceRequest] DataSourceRequest request, Rec_CandidateModel user)
        {

            var service = new RestServiceClient<Rec_CandidateModel>(UserLogin);
            service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
            var result = service.Put(_Hrm_Hre_Service, "api/Rec_Candidate/", user);
            return Json(result);
        }
开发者ID:dtafe,项目名称:vnr,代码行数:8,代码来源:Rec_FailCandidateController.cs

示例9: Edit

        public ActionResult Edit([Bind] CatLateEarlyRuleModel model)
        {

            var service = new RestServiceClient<CatLateEarlyRuleModel>(UserLogin);
            service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
            var result = service.Put(_hrm_Hr_Service, "api/CatLateEarlyRule/", model);
            return Json(result);
        }
开发者ID:dtafe,项目名称:vnr,代码行数:8,代码来源:Cat_LateEarlyRuleController.cs

示例10: Add

        /// <summary> Tạo mời một CatPosition </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public ActionResult Add([Bind] Sys_ReleaseNoteModel model)
        {

            var service = new RestServiceClient<Sys_ReleaseNoteModel>(UserLogin);
            service.SetCookies(this.Request.Cookies, _hrm_Sys_Service);
            var result = service.Put(_hrm_Sys_Service, Route, model);
            return Json(result);
        }
开发者ID:dtafe,项目名称:vnr,代码行数:11,代码来源:Sys_ReleaseNoteController.cs

示例11: Add

 /// <summary>
 /// Tạo mời một AttInOut
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public ActionResult Add([Bind] Hre_SoftSkillModel model)
 {
    
     var service = new RestServiceClient<Hre_SoftSkillModel>(UserLogin);
     service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
     var result = service.Put(_hrm_Hr_Service, "api/Hre_SoftSkill/", model);
     return Json(result);
 }
开发者ID:dtafe,项目名称:vnr,代码行数:13,代码来源:Hre_SoftSkillController.cs

示例12: Create

        /// <summary>
        /// Tạo mời một Sys_Resource
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public ActionResult Create([Bind] Sys_ResourceModel model)
        {

            var service = new RestServiceClient<Sys_ResourceModel>(UserLogin);
            service.SetCookies(this.Request.Cookies, _hrm_Sys_Service);
            var result = service.Put(_hrm_Sys_Service, "api/SysResource/", model);
            return Json(result);
        }
开发者ID:dtafe,项目名称:vnr,代码行数:13,代码来源:Sys_ResourceController.cs

示例13: Create

        /// <summary>
        /// Tạo mới một Rec_Tag
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public ActionResult Create([Bind] Rec_SourceAdsModel model)
        {

            var service = new RestServiceClient<Rec_SourceAdsModel>(UserLogin);
            service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
            var result = service.Put(_Hrm_Hre_Service, "api/Rec_SourceAds/", model);
            return Json(result);
        }
开发者ID:dtafe,项目名称:vnr,代码行数:13,代码来源:Rec_SourceAdsController.cs

示例14: Edit

        public ActionResult Edit([Bind] Cat_TAMScanReasonMissModel model)
        {

            var service = new RestServiceClient<Cat_TAMScanReasonMissModel>(UserLogin);
            service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
            var result = service.Put(_hrm_Hr_Service, "api/Cat_TAMScanReasonMissForAtt/", model);
            return Json(result);
        }
开发者ID:dtafe,项目名称:vnr,代码行数:8,代码来源:Cat_TAMScanReasonMissForAttController.cs

示例15: Create

  /// <summary>
  /// Tạo mời một CatLeaveDayType
  /// </summary>
  /// <param name="model"></param>
  /// <returns></returns>
  public ActionResult Create([Bind] CatLeaveDayTypeModel model)
  {
 
      var service = new RestServiceClient<CatLeaveDayTypeModel>(UserLogin);
      service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
      var result = service.Put(_hrm_Hr_Service, "api/CatLeaveDayType/", model);
      return View();
  }
开发者ID:dtafe,项目名称:vnr,代码行数:13,代码来源:Cat_LeaveDayTypeController.cs


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