public virtual BOPet MapEFToBO( Pet ef) { var bo = new BOPet(); bo.SetProperties( ef.Id, ef.AcquiredDate, ef.BreedId, ef.Description, ef.PenId, ef.Price, ef.SpeciesId); return(bo); }
public virtual BOPet MapModelToBO( int id, ApiPetRequestModel model ) { BOPet boPet = new BOPet(); boPet.SetProperties( id, model.AcquiredDate, model.BreedId, model.Description, model.PenId, model.Price, model.SpeciesId); return(boPet); }