public ActionResult Payment() { var objENPayment = new enPayment(); var objBLPayment = new blPayment(objENPayment); List <enPayment> listOfPayments = new List <enPayment>(); try { listOfPayments = objBLPayment.ReadAll(); } catch (Exception ex) { return(RedirectToAction("error", "misc")); } return(View(listOfPayments)); }