Exemple #1
0
        public IEnumerable <RoleModel> GetAvaliableRoles(int userId, int projectId)
        {
            IEnumerable <ProjectRole> roleList = projectRepository.GetAvaliableRoles(userId, projectId);

            if (roleList != null)
            {
                return(ApplicationMapper.MapProjectRoles(roleList));
            }
            return(null);
        }
Exemple #2
0
        public IEnumerable <RoleModel> GetRoles()
        {
            IEnumerable <ProjectRole> roleList = projectRepository.GetRoles();

            if (roleList != null)
            {
                return(ApplicationMapper.MapProjectRoles(roleList));
            }
            return(null);
        }