public User GetUser(string username)
        {
            var repoUser = _repo.GetUser(username);

            if (repoUser == null)
            {
                Console.WriteLine("UserLogic.GetUser() was called with a nonexistant username.");
                return(null);
            }
            return(Mapper.RepoUserToUser(repoUser));
        }
Beispiel #2
0
 public User GetUser(string username)
 {
     return(_repo.GetUser(username));
 }