public ActionResult Create(Eva_PerformanceTemplateModel model)
 {
     var service = new RestServiceClient<Eva_PerformanceTemplateModel>(UserLogin);
     service.SetCookies(this.Request.Cookies, _Hrm_Hr_Service);
     var result = service.Post(_Hrm_Hr_Service, "api/Eva_PerformanceTemplate/", model);
     ViewBag.MsgInsert = "Insert success";
     return Json(result, JsonRequestBehavior.AllowGet);
 }
 public Eva_PerformanceTemplateModel  GetById(Guid id)
 {
     string status = string.Empty;
     var model = new Eva_PerformanceTemplateModel();
     var service = new ActionService(UserLogin);
     var entity = service.GetByIdUseStore<Eva_PerformanceTemplateEntity>(id, ConstantSql.hrm_cat_sp_get_TemplateById, ref status);
     if (entity != null)
     {
         model = entity.CopyData<Eva_PerformanceTemplateModel>();
     }
     model.ActionStatus = status;
     return model;
 }