/// <summary> /// Get taxon count of the taxa that matches fact search criteria. /// </summary> /// <param name="clientInformation">Information about the client that makes this web service call.</param> /// <param name="searchCriteria">Species fact search criteria.</param> /// <returns>Taxon count of the taxa that matches fact search criteria.</returns> public Int32 GetTaxaCountBySearchCriteria(WebClientInformation clientInformation, WebSpeciesFactSearchCriteria searchCriteria) { using (WebServiceContext context = GetWebServiceContext(clientInformation)) { try { return(SpeciesFactManager.GetTaxaCountBySearchCriteria(context, searchCriteria)); } catch (Exception exception) { WebServiceData.LogManager.LogError(context, exception); throw; } } }
/// <summary> /// Get information about all species facts. /// </summary> /// <param name="clientInformation">Information about the client that makes this web service call.</param> /// <param name="speciesFactIds">Ids for species facts to get information about.</param> /// <returns>Species facts.</returns> public List <WebSpeciesFact> GetSpeciesFactsByIds(WebClientInformation clientInformation, List <int> speciesFactIds) { using (WebServiceContext context = GetWebServiceContext(clientInformation)) { try { return(SpeciesFactManager.GetSpeciesFactsByIds(context, speciesFactIds)); } catch (Exception exception) { WebServiceData.LogManager.LogError(context, exception); throw; } } }
/// <summary> /// Delete species facts. /// </summary> /// <param name="clientInformation">Information about the client that makes this web service call.</param> /// <param name="deleteSpeciesFacts">Existing species facts to delete.</param> public void DeleteSpeciesFacts(WebClientInformation clientInformation, List <WebSpeciesFact> deleteSpeciesFacts) { using (WebServiceContext context = GetWebServiceContext(clientInformation)) { try { SpeciesFactManager.DeleteSpeciesFacts(context, deleteSpeciesFacts); } catch (Exception exception) { WebServiceData.LogManager.LogError(context, exception); throw; } } }