public virtual BOCustomer MapEFToBO( Customer ef) { var bo = new BOCustomer(); bo.SetProperties( ef.Id, ef.Email, ef.FirstName, ef.LastName, ef.Phone); return(bo); }
public virtual Customer MapBOToEF( BOCustomer bo) { Customer efCustomer = new Customer(); efCustomer.SetProperties( bo.Email, bo.FirstName, bo.Id, bo.LastName, bo.Phone); return(efCustomer); }
public virtual BOCustomer MapModelToBO( int id, ApiCustomerRequestModel model ) { BOCustomer boCustomer = new BOCustomer(); boCustomer.SetProperties( id, model.Email, model.FirstName, model.LastName, model.Phone); return boCustomer; }