C# Class ZooApp.Services.FoodService

Mostra file Open project: foyzulkarim/VirtualTechAcademy

Public Methods

Method Description
Delete ( Food food ) : bool
Get ( int id ) : ViewFood
GetAll ( ) : List
GetDbModel ( int id ) : Food
Save ( Food food ) : bool
Update ( Food food ) : bool

Method Details

Delete() public method

public Delete ( Food food ) : bool
food ZooApp.Models.Food
return bool

Get() public method

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

GetAll() public method

public GetAll ( ) : List
return List

GetDbModel() public method

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

Save() public method

public Save ( Food food ) : bool
food ZooApp.Models.Food
return bool

Update() public method

public Update ( Food food ) : bool
food ZooApp.Models.Food
return bool