public SubscriptionModel MapData(Subscription s) { SubscriptionModel model = new SubscriptionModel(); model.Id = s.Id; model.UserId = s.UserId; model.VacId = s.VacationId; model.FirstName = s.FirstName; model.LastName = s.LastName; model.RNR = s.RNR; model.Street = s.Street; model.HouseNr = s.HouseNr; model.PostalCode = s.PostalCode; model.City = s.City; model.Name_Mother = s.Name_Mother; model.Name_Father = s.Name_Father; model.RNR_Mother = s.RNR_Mother; model.RNR_Father = s.RNR_Father; model.TelephoneNumber = s.TelephoneNumber; model.Email = s.Email; model.Payed = s.Payed; model.FacturationAddress = s.FacturationAddress; model.FacturationName = s.FacturationName; return model; }
public Subscription MapData(SubscriptionModel sm) { Subscription s = new Subscription(); s.Id = sm.Id; s.VacationId = sm.VacId; s.UserId = sm.UserId; s.FirstName = sm.FirstName; s.LastName = sm.LastName; s.RNR = sm.RNR; s.Street = sm.Street; s.HouseNr = sm.HouseNr; s.PostalCode = sm.PostalCode; s.City = sm.City; s.Name_Mother = sm.Name_Mother; s.Name_Father = sm.Name_Father; s.RNR_Mother = sm.RNR_Mother; s.RNR_Father = sm.RNR_Father; s.TelephoneNumber = sm.TelephoneNumber; s.Email = sm.Email; s.Payed = sm.Payed; s.FacturationAddress = sm.FacturationAddress; s.FacturationName = sm.FacturationName; return s; }