Exemplo n.º 1
0
        public UserDTO GetUserByCredentials(string username, string password)
        {
            var userResult = db.GetUserByCredentials(username, password);

            if (userResult == null)
            {
                return(null);
            }

            var result = new UserDTO(userResult.Id.ToString(), userResult.FullName, userResult.UserName, userResult.Initials, userResult.Bio, userResult.Picture);

            return(result);
        }