C# Class Supplier.Application.SupplierApplication

餐厅应用服务
Inheritance: BaseApplication
Show file Open project: hahalixiaojing/ddd.sample

Public Methods

Method Description
Add ( AddSupplierModel model ) : IReturn

创建餐厅

Close ( int id ) : IReturn

停止营业

FindById ( int id ) : IReturn

查询一个餐厅详细信息

FindByIds ( int supplierIds ) : IReturn

查询一批餐厅详细信息

Open ( int id ) : IReturn

开始营业

Select ( int pageSize = 20, int pageIndex = 1 ) : IReturn

查询餐厅列表

Update ( int supplierId, AddSupplierModel model ) : IReturn

更新餐厅信息

Method Details

Add() public method

创建餐厅
public Add ( AddSupplierModel model ) : IReturn
model AddSupplierModel 餐厅信息
return IReturn

Close() public method

停止营业
public Close ( int id ) : IReturn
id int 餐厅ID
return IReturn

FindById() public method

查询一个餐厅详细信息
public FindById ( int id ) : IReturn
id int 餐厅ID
return IReturn

FindByIds() public method

查询一批餐厅详细信息
public FindByIds ( int supplierIds ) : IReturn
supplierIds int 参餐ID集合
return IReturn

Open() public method

开始营业
public Open ( int id ) : IReturn
id int 餐厅ID
return IReturn

Select() public method

查询餐厅列表
public Select ( int pageSize = 20, int pageIndex = 1 ) : IReturn
pageSize int 每页返回记录数
pageIndex int 页码 ,起始页=1
return IReturn

Update() public method

更新餐厅信息
public Update ( int supplierId, AddSupplierModel model ) : IReturn
supplierId int 餐厅ID
model AddSupplierModel 餐厅信息
return IReturn