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)); }
public async Task <IActionResult> AddUser(User user) { return(Tools.CreateResult(true, "", await _userAdapter.AddUser(user))); }