public async Task <IActionResult> Get(Guid id) { var rssSourse = await _rssSourceService.GetRssSourceById(id); if (rssSourse is null) { Log.Error("user not found"); return(BadRequest("user not found")); } return(Ok(rssSourse)); }
public async Task <IActionResult> Details(Guid?id) { if (id == null) { return(NotFound()); } var sourse = await _rssSourceService.GetRssSourceById(id); if (sourse == null) { return(NotFound()); } return(View(sourse)); }