public async Task <IActionResult> SaveMoviesAsync([FromBody] SaveOmbiMoviesSettingsModel model) { var movieSettings = new MoviesSettings { Client = DownloadClient.Ombi }; var ombiSettings = Sanitize(model); DownloadClientsSettingsRepository.SetOmbi(movieSettings, ombiSettings); return(Ok(new { ok = true })); }
public async Task <IActionResult> SaveTvShowsAsync([FromBody] SaveOmbiTvShowsSettingsModel model) { var tvShowsSettings = new TvShowsSettings { Client = DownloadClient.Ombi, Restrictions = model.Restrictions }; var ombiSettings = Sanitize(model); DownloadClientsSettingsRepository.SetOmbi(tvShowsSettings, ombiSettings); return(Ok(new { ok = true })); }