Exemple #1
0
        public async Task <IActionResult> DeleteFeedAsync(long id, long feedId)
        {
            var feed = await _feedRepository.GetFeedAsync(feedId);

            if (feed == null)
            {
                return(NotFound("Invalid Feed Id"));
            }

            await _feedRepository.DeleteFeedAsync(feed);

            return(NoContent());
        }