public virtual ApiPetResponseModel MapBOToModel( BOPet boPet) { var model = new ApiPetResponseModel(); model.SetProperties(boPet.Id, boPet.BreedId, boPet.ClientId, boPet.Name, boPet.Weight); return(model); }
public virtual BOPet MapEFToBO( Pet ef) { var bo = new BOPet(); bo.SetProperties( ef.Id, ef.BreedId, ef.ClientId, ef.Name, ef.Weight); return(bo); }
public virtual Pet MapBOToEF( BOPet bo) { Pet efPet = new Pet(); efPet.SetProperties( bo.BreedId, bo.ClientId, bo.Id, bo.Name, bo.Weight); return(efPet); }
public virtual BOPet MapModelToBO( int id, ApiPetRequestModel model ) { BOPet boPet = new BOPet(); boPet.SetProperties( id, model.BreedId, model.ClientId, model.Name, model.Weight); return(boPet); }