public async Task <IActionResult> Put([FromBody] ModifyMeRequest request) { int currentUserId = this.GetCurrentUserId(); User user = await _userDataSource.Update( currentUserId, request.Name, request.Info, request.Birthday); if (user == null) { return(NotFound()); } return(Ok(user)); }
public void UpdateUser() { UserDataSource dataSource = new UserDataSource(); dataSource.Update(this); }