Пример #1
0
 public IDataResult <Color> GetById(int colorId)
 {
     return(new SuccessDataResult <Color>(_colorDao.Get(c => c.ColorId == colorId)));
 }
 public IDataResult <Color> GetById(int id)
 {
     return(new SuccessDataResult <Color>(_colorDao.Get(color => color.ColorId == id)));;
 }