public IActionResult Put([FromBody] Food food)
 {
     if (food == null)
     {
         return(BadRequest());
     }
     _repo.Edit(food);
     return(Ok());
 }
Exemple #2
0
 public async Task <int> EditFoodAsync(Food food)
 {
     return(await _foodRepo.Edit(food));
 }