C# Class ZooApp.Services.AnimalService

Mostra file Open project: foyzulkarim/VirtualTechAcademy

Public Methods

Method Description
Delete ( Animal animal ) : bool
Get ( int id ) : ViewAnimal
GetAll ( ) : List
GetDbModel ( int id ) : Animal
Save ( Animal animal ) : bool
Update ( Animal animal ) : bool

Method Details

Delete() public method

public Delete ( Animal animal ) : bool
animal ZooApp.Models.Animal
return bool

Get() public method

public Get ( int id ) : ViewAnimal
id int
return ZooApp.ViewModels.ViewAnimal

GetAll() public method

public GetAll ( ) : List
return List

GetDbModel() public method

public GetDbModel ( int id ) : Animal
id int
return ZooApp.Models.Animal

Save() public method

public Save ( Animal animal ) : bool
animal ZooApp.Models.Animal
return bool

Update() public method

public Update ( Animal animal ) : bool
animal ZooApp.Models.Animal
return bool