Beispiel #1
0
 public IActionResult GetById(int id)
 {
     return(Ok(_repository.GetById(id)));
 }
 public FoodType GetById(int id)
 {
     return(_repository.GetById(id)?.ToClient());
 }
Beispiel #3
0
 public FoodType GetById(int id)
 {
     return(foodTypeRepository.GetById(id));
 }