public void Update(PersonalSettingsDTO dto) { ProfileMessage = dto.ProfileMessage; Twitch = dto.Twitch; YouTube = dto.Youtube; Twitter = dto.Twitter; HomePage = dto.HomePage; Country = dto.Country; }
public async Task <IActionResult> SetPersonalSetting( string battleTag, [FromBody] PersonalSettingsDTO dto) { var setting = await _personalSettingsRepository.Load(battleTag) ?? new PersonalSetting(battleTag); setting.Update(dto); await _personalSettingsRepository.Save(setting); return(Ok()); }
public void Update(PersonalSettingsDTO dto) { ProfileMessage = dto.ProfileMessage; Twitch = dto.Twitch; YouTube = dto.Youtube; Twitter = dto.Twitter; Trovo = dto.Trovo; Douyu = dto.Douyu; HomePage = dto.HomePage; Country = dto.Country; CountryCode = dto.CountryCode; }