public void AddSpecies(ApiSpeciesClientResponseModel item) { if (!this.Species.Any(x => x.Id == item.Id)) { this.Species.Add(item); } }
public virtual ApiSpeciesClientRequestModel MapClientResponseToRequest( ApiSpeciesClientResponseModel response) { var request = new ApiSpeciesClientRequestModel(); request.SetProperties( response.Name); return(request); }
public virtual ApiSpeciesClientResponseModel MapClientRequestToResponse( int id, ApiSpeciesClientRequestModel request) { var response = new ApiSpeciesClientResponseModel(); response.SetProperties(id, request.Name); return(response); }
public void SetSpeciesIdNavigation(ApiSpeciesClientResponseModel value) { this.SpeciesIdNavigation = value; }