public ActionResult Edit(RefeicaoViewModel refeicao)
 {
     try
     {
         _refeicaoApp.Atualizar(refeicao);
         return(RedirectToAction(nameof(Index)));
     }
     catch
     {
         return(View());
     }
 }
예제 #2
0
 public void Put([FromBody] RefeicaoViewModel refeicao)
 {
     _refeicaoApp.Atualizar(refeicao);
 }