Example #1
0
        internal User GetUserById(string id)
        {
            User user = _repo.GetUserById(id);

            if (user == null)
            {
                throw new Exception("Invalid Request");
            }
            user.Hash = null;
            return(user);
        }
Example #2
0
 public IUser GetUserById(string id)
 {
     return(_repo.GetUserById(id));
 }