public IEnumerable <DepartmentViewModel> GetAllDepartments() { List <DepartmentViewModel> models = new List <DepartmentViewModel>(); try { List <Department> modules = DepartmentManager.FindAll(); models = ObjectMapper.Map <Model.Entities.Department, DepartmentViewModel>(modules); } catch (Exception ex) { ExceptionManager.HandleException(ex, PolicyNameType.ExceptionReplacing); } return(models); }