Пример #1
0
 public void AddSpecies(ApiSpeciesClientResponseModel item)
 {
     if (!this.Species.Any(x => x.Id == item.Id))
     {
         this.Species.Add(item);
     }
 }
Пример #2
0
        public virtual ApiSpeciesClientRequestModel MapClientResponseToRequest(
            ApiSpeciesClientResponseModel response)
        {
            var request = new ApiSpeciesClientRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
Пример #3
0
        public virtual ApiSpeciesClientResponseModel MapClientRequestToResponse(
            int id,
            ApiSpeciesClientRequestModel request)
        {
            var response = new ApiSpeciesClientResponseModel();

            response.SetProperties(id,
                                   request.Name);
            return(response);
        }
Пример #4
0
 public void SetSpeciesIdNavigation(ApiSpeciesClientResponseModel value)
 {
     this.SpeciesIdNavigation = value;
 }