public ActionResult ExpenseAddItem(int?id) { ExpenseDataContract expenseDC = new ExpenseDataContract(); _dropDownManager = new DropDownManager(); try { expenseDC.ClientList = _dropDownManager.GetClientList(); expenseDC.ProductList = _dropDownManager.GetProductList(); } catch (Exception ex) { var trace = new StackTrace(ex, true); var frame = trace.GetFrame(0); var line = frame.GetFileLineNumber(); LibLogging.WriteErrorToDB("ExpenseAddItem", "LineNumber" + line.ToString() + "-" + ex.Message, ex); } return(View(expenseDC)); }