public User GetUserById(string userId, string roleName) { var roleId = roleRepo.GetRoleIdByName(roleName); return(repo.GetById(userId, roleId)); }
public IEnumerable <User> GetAllByRoleName(string role) { var roleId = roleRepo.GetRoleIdByName(role); return(repo.GetAllByRoleId(roleId)); }