public static PuntualSearchOutputWS PuntualSearch(PuntualSearchInfoWS searchInfo) { PuntualSearchOutputWS res = new PuntualSearchOutputWS(); if (string.IsNullOrEmpty(searchInfo.Codice.ToUpper())) { res.Code = SearchOutputCode.KO; res.ErrorMessage = "Il campo di input non ha un valore valido"; return(res); } if (_elements.ContainsKey(searchInfo.Codice)) { DummyElement temp = _elements[searchInfo.Codice]; SearchOutputRowWS row = new SearchOutputRowWS(); row.Codice = temp.Codice; row.Descrizione = temp.Descrizione; res.Row = row; } res.Code = SearchOutputCode.OK; return(res); }
public PuntualSearchOutputWS PuntualSearch(PuntualSearchInfoWS searchInfo) { return(DummyHandler.PuntualSearch(searchInfo)); }