public IEnumerable <RoleModel> GetAvaliableRoles(int userId, int projectId) { IEnumerable <ProjectRole> roleList = projectRepository.GetAvaliableRoles(userId, projectId); if (roleList != null) { return(ApplicationMapper.MapProjectRoles(roleList)); } return(null); }
public IEnumerable <RoleModel> GetRoles() { IEnumerable <ProjectRole> roleList = projectRepository.GetRoles(); if (roleList != null) { return(ApplicationMapper.MapProjectRoles(roleList)); } return(null); }