public ActionResult DeletePost(int id) { _service.DeleteTrans(id); TempData["SaveResult"] = "Your transaction was deleted"; return(RedirectToAction("Index")); }