コード例 #1
0
        public User AddUser(AddUserRequest request)
        {
            var user = new User
            {
                Id       = Guid.NewGuid(),
                Name     = request.Name,
                Surname  = request.Surname,
                Birthday = request.Birthday
            };

            return(_userAdapter.AddUser(user));
        }
コード例 #2
0
 public async Task <IActionResult> AddUser(User user)
 {
     return(Tools.CreateResult(true, "", await _userAdapter.AddUser(user)));
 }