示例#1
0
 public IDataResult <Brand> GetById(int brandId)
 {
     return(new SuccessDataResult <Brand>(_brandDao.Get(b => b.BrandId == brandId)));
 }
 public IDataResult <Brand> GetById(int id)
 {
     return(new SuccessDataResult <Brand>(_brandDao.Get(brand => brand.BrandId == id)));
 }