Esempio n. 1
0
        public async Task <IActionResult> GetUserByName(string name)
        {
            var user = await _repo.GetUserByName(name);

            var userToReturn = _mapper.Map <UserForDetailedDto>(user);

            return(Ok(userToReturn));
        }