Exemple #1
0
        public User GetUserById(string userId, string roleName)
        {
            var roleId = roleRepo.GetRoleIdByName(roleName);

            return(repo.GetById(userId, roleId));
        }
Exemple #2
0
        public IEnumerable <User> GetAllByRoleName(string role)
        {
            var roleId = roleRepo.GetRoleIdByName(role);

            return(repo.GetAllByRoleId(roleId));
        }