public ActionResult DeleteImage(int id, string pageId) { try { IContentService contentService = new ContentService(); contentService.DeleteImageById(id); return(RedirectToAction("ManageImages", "Admin", new { id = pageId })); } catch (Exception) { throw; } }