C# Class Core.AnimalService

Inheritance: IAnimalService
Exibir arquivo Open project: upnxt/upnxt-dapper-cqrs

Public Methods

Method Description
AnimalService ( IDatabase database ) : System.Collections.Generic
GetAllAnimals ( ) : IEnumerable
GetAnimalsByCommonName ( CommonName commonName ) : IEnumerable
Save ( Animal animal ) : void

Method Details

AnimalService() public method

public AnimalService ( IDatabase database ) : System.Collections.Generic
database IDatabase
return System.Collections.Generic

GetAllAnimals() public method

public GetAllAnimals ( ) : IEnumerable
return IEnumerable

GetAnimalsByCommonName() public method

public GetAnimalsByCommonName ( CommonName commonName ) : IEnumerable
commonName CommonName
return IEnumerable

Save() public method

public Save ( Animal animal ) : void
animal Animal
return void