private List <DaysOldInvoice> GetDOInvoice(string strSearch, string strSql, string strOrder, int daysFrom, int daysTo) { var mgr = new PegasysInvoiceManager(); List <DaysOldInvoice> model = new List <DaysOldInvoice>(); model = mgr.GetDaysOldInvoice(strSearch, strSql, strOrder, daysFrom, daysTo); return(model); }
private List <PegasysKeyedIndexedViewModel> GetInvoiceToBeIndexedByAssServ() { var mgr = new PegasysInvoiceManager(); List <PegasysKeyedIndexedViewModel> model = new List <PegasysKeyedIndexedViewModel>(); model = mgr.GetPegasysInvoiceToBeIndexed(AssignSrv); return(model); }
public ActionResult GetMemos([DataSourceRequest] DataSourceRequest request, string id) { if (string.IsNullOrWhiteSpace(id)) { return(Json(null, JsonRequestBehavior.AllowGet)); } var mgr = new PegasysInvoiceManager(); var efMemos = mgr.GetPegasysMemos(id); var vm = new PegasysMemoModel(efMemos); var result = vm.Memos.ToDataSourceResult(request); return(Json(result, JsonRequestBehavior.AllowGet)); }