Beispiel #1
0
 public IDataResult <Food> GetById(int id)
 {
     return(new SuccessDataResult <Food>(_foodDal.Get(f => f.Id == id)));
 }
Beispiel #2
0
 public Food GetByID(int id)
 {
     return(_foodDal.Get(x => x.FoodId == id));
 }