public SumaFacturasPresenter(ISumaFacturasView view, IBillsSystemContext billsSystemContext, IBillService billService, ICompanyService companyService, ISumBillsService sumBillsService) : base(view, billsSystemContext, billService, companyService) { this.sumBillsService = sumBillsService; this.View.OnListView1_GetData += View_OnListView1_GetData; }
public IList <SumBills> CalculatorMounths(ISumBillsService sumBillsService, string idUser) { var firstBills = this.GetBillsByIdUser(idUser); var mounths = this.DistinctsMounths(firstBills); var sumBillsTotals = sumBillsService.CalculatorMounths(firstBills, mounths); return(sumBillsTotals); }