Exemplo n.º 1
0
        public static UserDomain.User ToDomainModel(UserViewModel registerViewModel)
        {
            var user = new UserDomain.User(
                registerViewModel.Id,
                registerViewModel.Name,
                registerViewModel.Age,
                registerViewModel.Address);

            return(user);
        }
Exemplo n.º 2
0
        public static UserViewModel ToViewModel(UserDomain.User user)
        {
            var userViewModel = new UserViewModel(
                user.Id,
                user.Name,
                user.Age,
                user.Address);

            return(userViewModel);
        }