public override int Count(string search = null, object advancedSearch = null) { try { var wcf = new WcfService.Service(); var count = wcf.CountFornitori(search, advancedSearch, commessa); return(count); } catch (Exception ex) { UtilityError.Write(ex); } return(0); }