public ActionResult Delete(int id) { var entity = _repOrgImage.Find(id); _repOrgImage.Delete(entity); return(View()); }
public ActionResult DeleteImage(int id, int orgId) { orgimagerep.Delete(id); return(RedirectToAction("Detail", new { id = orgId })); }