예제 #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;
 }