public ActionResult Delete(long id) { var Image = imgdb.Get(id); imgdb.Remove(Image); db.Remove(id); return(RedirectToAction("Index")); }
public ActionResult Delete(long id) { productMGRepository.Remove(id); return(RedirectToAction("index")); }