public override int Count(string search = null, object advancedSearch = null) { try { var wcf = new WcfService.Service(); int count = wcf.CountSALs(search, advancedSearch, commessa); return(count); } catch (Exception ex) { UtilityError.Write(ex); } return(0); }
public static string GetNewCodice(CommessaDto commessa) { try { var wcf = new WcfService.Service(); var count = wcf.CountSALs(null, null, commessa); var progressivo = count + 1; var codice = progressivo.ToString("00"); return(codice); } catch (Exception ex) { UtilityError.Write(ex); } return(null); }
public static string GetNewCodice(CommessaDto commessa) { try { var wcf = new WcfService.Service(); var count = wcf.CountSALs(null, null, commessa); var progressivo = count + 1; var codice = progressivo.ToString("00"); return codice; } catch (Exception ex) { UtilityError.Write(ex); } return null; }