예제 #1
0
        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));
        }
예제 #2
0
        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));
        }