public PaymentController(ExpenseTrackerContext context) { try { paymentBL = new PaymentBL(context); paymentBL.AddPayments(); } catch (Exception e) { Console.WriteLine("Exception in getting Context object", e); } }