Exemplo n.º 1
0
        public async Task <ActionResult <MemberToReturnDto> > GetUser(string username)
        {
            var user = await _unitOfWork.UserRepository.GetUserByUsernameAsync(username);

            return(_mapster.Map <MemberToReturnDto>(user));
        }
Exemplo n.º 2
0
 public dynamic Map(object obj, Type source, Type destination)
 {
     return(_mapper.Map(obj, source, destination));
 }