public static void KoloMadDetailsFromWs(ref KoloMadDetails koloMad, ExWebSvc4Mad.KoloMadDetails madDetails) { koloMad.Reference = madDetails.Reference; koloMad.MadId = (int)madDetails.Bordereau; koloMad.Success = madDetails.Success; koloMad.Error = madDetails.Error; koloMad.SenderId = madDetails.IdClientEmetteur; koloMad.ReceiverId = madDetails.IdClientBeneficiaire; koloMad.Amount = (int)madDetails.Montant; koloMad.Fee = madDetails.Ccion; koloMad.Tax = madDetails.Tva; koloMad.Everywhere = madDetails.ToutReseau; koloMad.CityCode = madDetails.CodeVille; koloMad.Password = madDetails.Password; }
public ExWebSvc4Mad.KoloMadDetails WsKoloMadDetails() { ExWebSvc4Mad.KoloMadDetails madDetails = new ExWebSvc4Mad.KoloMadDetails(); madDetails.Reference = this.Reference; madDetails.Bordereau = (int)this.MadId; madDetails.Success = this.Success; madDetails.Error = this.Error; madDetails.CodeTerminal = TerminalCode; madDetails.IdCaisse = CashBoxId; madDetails.IdOperateur = CashierId; madDetails.IdClientEmetteur = this.SenderId; madDetails.IdClientBeneficiaire = this.ReceiverId; madDetails.Montant = (int)this.Amount; madDetails.Ccion = this.Fee; madDetails.Tva = this.Tax; madDetails.ToutReseau = this.Everywhere; madDetails.CodeVille = this.CityCode; madDetails.Password = this.Password; return(madDetails); }