public ActionResult Edit(CatExportItemModel model) { var service = new RestServiceClient<CatExportItemModel>(UserLogin); service.SetCookies(this.Request.Cookies, _hrm_Hr_Service); var result = service.Post(_hrm_Hr_Service, "api/CatExportItem/", model); return Json(result); }
/// <summary> /// [Tin.Nguyen] - Lấy dữ liệu Dân Tộc(Cat_ExportItem) theo Id /// </summary> /// <param name="id"></param> /// <returns></returns> public CatExportItemModel GetById(Guid id) { string status = string.Empty; var model = new CatExportItemModel(); ActionService service = new ActionService(UserLogin); var entity = service.GetById<Cat_ExportItemEntity>(id, ref status); if (entity != null) { model = entity.CopyData<CatExportItemModel>(); } model.ActionStatus = status; return model; }
//public JsonResult GetReqDocumentCodeps(string codeemps) //{ // string status = string.Empty; // var service = new Cat_ProfileServices(); // var result = service.GetData<Hre_ProfileMultiEntity>(codeemps, ConstantSql.hrm_hr_sp_get_ProfileByCodeEmps, ref status); // return Json(result, JsonRequestBehavior.AllowGet); //} #endregion #region Cat_ExportItem //[HttpPost] public ActionResult GetExportItemList([DataSourceRequest] DataSourceRequest request, CatExportItemModel model) { return GetListDataAndReturn<CatExportItemModel, Cat_ExportItemEntity, CatExportItemModel>(request, model, ConstantSql.hrm_cat_sp_get_ExportItem); }