示例#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;
 }