public ActionResult DeleteConfirmed(int BillID, DateTime ReturnBeginDate, DateTime ReturnEndDate, string ReturnType = "", int ReturnBillID = 0) { bill bill = billRepository.GetBillByID(BillID); billRepository.DeleteRecord(bill); if (ReturnType == "List") { return(RedirectToAction("List", new { bDate = ReturnBeginDate, eDate = ReturnEndDate, codeID = ReturnBillID })); } else { return(RedirectToAction("Create")); } }