public async Task <IActionResult> AddUserAsync([FromBody] UserCreateDto dto) { var user = await _userDao.AddAsync(new User(dto.Name, dto.Surname, dto.Email, new Password(dto.Password))); return(Ok(new SuccessResponse <User>(user))); }
public async Task <IActionResult> AddUserAsync([FromBody] UserCreateDto dto) { var user = await _userDao.AddAsync(new User(dto.Name, dto.Surname, dto.Email, new Password(dto.Password))); return(Ok(new SuccessResponse <User>(user))); }