Ejemplo n.º 1
0
 public PratosIngredientesViewModel Put(int id, [FromBody] PratosIngredientesViewModel pratosIngredientes)
 {
     _repo.Alterar(pratosIngredientes);
     return(pratosIngredientes);
 }
Ejemplo n.º 2
0
 public PratosIngredientesViewModel Post([FromBody] PratosIngredientesViewModel pratosIngredientes)
 {
     _repo.Incluir(pratosIngredientes);
     return(pratosIngredientes);
 }
Ejemplo n.º 3
0
 public PratosIngredientesViewModel Put([FromBody] PratosIngredientesViewModel pratosIngredientes)
 {
     _app.Update(pratosIngredientes);
     return(pratosIngredientes);
 }
Ejemplo n.º 4
0
 public ActionResult <PratosIngredientesViewModel> Post([FromBody] PratosIngredientesViewModel pratosIngredientes)
 {
     _app.Insert(pratosIngredientes);
     return(Ok(pratosIngredientes));
 }
 public void Incluir(PratosIngredientesViewModel entity)
 {
     _repo.Incluir(_mapper.Map <PratosIngredientes>(entity));
 }
 public void Alterar(PratosIngredientesViewModel entity)
 {
     _repo.Alterar(_mapper.Map <PratosIngredientes>(entity));
 }