Esempio n. 1
0
 public IActionResult Create([FromBody] Dish dish)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest());
     }
     db.Create(dish);
     db.Save();
     return(Ok(dish));
 }