public async Task SaveTimersSettingsAsync([FromBody] TimersSettingsModel model, string userId) { if (string.IsNullOrEmpty(userId)) { throw new ValidationApiException("Used id required"); } var timersSettings = Mapper.Map <TimersSettings>(model); await _timersSettingsService.UpdateAsync(timersSettings, userId); }
public async Task UpdateTimersSettingsAsync([FromBody] TimersSettingsModel model) { var timersSettings = Mapper.Map <TimersSettings>(model); await _timersSettingsService.UpdateAsync(timersSettings); }