public CatOrgStructureModel Post([Bind]CatOrgStructureModel model) { #region Validate string message = string.Empty; var checkValidate = HRM.Business.Main.Domain.ValidatorService.OnValidateData<CatOrgStructureModel>(model, "Cat_OrgStructure", ref message); if (!checkValidate) { model.ActionStatus = message; return model; } #endregion ActionService service = new ActionService(UserLogin); //Xóa cache lưu lại của cây phòng ban HttpContext.Current.Cache.Remove("List_OrgStructureTreeView"); HttpContext.Current.Cache.Remove("List_OrgStructureTreeViewSumProfile"); #region Get max Order Number of Orgstructure if (model != null && model.ID == Guid.Empty) { Cat_OrgStructureServices orgService = new Cat_OrgStructureServices(); model.OrderNumber = orgService.GetMaxOrgstructureOrder(); } #endregion return service.UpdateOrCreate<Cat_OrgStructureEntity, CatOrgStructureModel>(model); }