public override int Count(string search = null, object advancedSearch = null) { try { var wcf = new WcfService.Service(); int count = wcf.CountFattureAcquisto(search, advancedSearch, fornitore, anagraficaFornitore); return(count); } catch (Exception ex) { UtilityError.Write(ex); } return(0); }
public override int Count(string search = null, object advancedSearch = null) { try { var wcf = new WcfService.Service(); var countFattureAcquistoScadenza = wcf.CountFattureAcquisto(search); var countPagamenti = wcf.CountPagamenti(search); var count = countFattureAcquistoScadenza + countPagamenti; return(count); } catch (Exception ex) { UtilityError.Write(ex); } return(0); }