public ActionResult Delete(int Id) { ServiceLayer service = new ServiceLayer(); service.Delete(Id); return(RedirectToAction("submit", new { Message = "Deleted Successfully" })); }