Beispiel #1
0
 public void AddPet(ApiPetResponseModel item)
 {
     if (!this.Pets.Any(x => x.Id == item.Id))
     {
         this.Pets.Add(item);
     }
 }
Beispiel #2
0
        public virtual ApiPetRequestModel MapResponseToRequest(
            ApiPetResponseModel response)
        {
            var request = new ApiPetRequestModel();

            request.SetProperties(
                response.AcquiredDate,
                response.BreedId,
                response.Description,
                response.PenId,
                response.Price,
                response.SpeciesId);
            return(request);
        }