public List <RoleViewModel> GetDepartments() { List <RoleViewModel> roles = commonContext.GetAllRoles().Select(p => new RoleViewModel(p)).ToList(); return(roles); }