public KoloMadCustomer(ExWebSvc4Mad.KoloMadCustomer madCustomer) { this.MadCustomerId = madCustomer.IdClient; this.MadCustomerCode = madCustomer.CodeClient; this.LastName = madCustomer.Nom; this.FirstName = madCustomer.Prenom; this.PhoneNumber = madCustomer.Number; this.Success = madCustomer.Success; this.Error = madCustomer.Error; }
public ExWebSvc4Mad.KoloMadCustomer WsKoloMadCustomer() { ExWebSvc4Mad.KoloMadCustomer madCustomer = new ExWebSvc4Mad.KoloMadCustomer(); madCustomer.IdClient = this.MadCustomerId; madCustomer.CodeClient = this.MadCustomerCode; madCustomer.Nom = this.LastName; madCustomer.Prenom = this.FirstName; madCustomer.Number = this.PhoneNumber; madCustomer.Success = this.Success; madCustomer.Error = this.Error; return(madCustomer); }
public static string FindCustomerMad(ref KoloWin.CustomerService.Model.KoloMadCustomer madCustomer, out string error) { error = ""; try { ExWebSvc4Mad.ExWebSvcSoapClient exWeb = new ExWebSvc4Mad.ExWebSvcSoapClient(); ExWebSvc4Mad.KoloMadCustomer wsMadCustomer = exWeb.GetKoloMadCustomer(madCustomer.WsKoloMadCustomer()); madCustomer = new KoloWin.CustomerService.Model.KoloMadCustomer(wsMadCustomer); } catch (Exception ex) { error = ExceptionHelper.GetExceptionMessage(ex); } return(""); }