Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task <ActionResult <Result> > CreateDepartment(DepartmentViewModel DepartmentViewModel) { try { var Result = _DepartmentManager.CreateDepartment(DepartmentViewModel, GetUserName()); return(await Result); } catch (Exception ex) { _exceptionManager.SaveLog(Request.Path, DepartmentViewModel, ex, GetUserName()); return(new Result() { IsSuccess = false, Errors = new List <string> { Resources.ExceptionMessage } }); } }