public async Task <IActionResult> RemoveFeed([FromRoute] string feedId) { var result = await _feedServices.DeleteFeed(feedId); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public async Task <ActionResult <string> > DeleteFeed( [FromForm] string feedName, [FromForm] string feedGroupName ) { await _feedService.DeleteFeed( userName : User.Identity.Name, feedGroupName : feedGroupName, feedName : feedName ); TempData["Message"] = $"Deleted feed '{feedGroupName}:{feedName}'."; return(RedirectToAction( "Index", "Admin" )); }