public IList <Reports> getMonthlyReport(string from, string to) { var from1 = ConvertDate.ConvertToDate(from); var to1 = ConvertDate.ConvertToDate(to); ////////////////////////////////// if (from1 == DateTime.MinValue || to1 == DateTime.MinValue) { getMonthlyReport(); } else if (from1 != null && to1 != null) { var lstCriditor = uowExpense.Entity.GetElements(r => r.ExpenseDate >= from1 && r.ExpenseDate <= to1); var lstDebitor = _uowIncome.Entity.GetElements(r => r.Payement_date >= from1 && r.Payement_date <= to1); fillList(lstCriditor, lstDebitor); } return(reports); }