public ActionResult Delete(Sale sale) { sale.Id = sale.Id; if (_salesManager.Delete(sale)) { ViewBag.SuccessMsg = "Data Delete SuccessFully!"; TempData["SuccessDeleteMessage"] = "Record Delete Successfully"; return(RedirectToAction("FindAll")); } else { ViewBag.FailMsg = "Data Delete Fail!"; TempData["SuccessMessage"] = "Data Delete Fail!"; return(RedirectToAction("FindAll")); } return(View()); }