public PratosIngredientesViewModel Put(int id, [FromBody] PratosIngredientesViewModel pratosIngredientes) { _repo.Alterar(pratosIngredientes); return(pratosIngredientes); }
public PratosIngredientesViewModel Post([FromBody] PratosIngredientesViewModel pratosIngredientes) { _repo.Incluir(pratosIngredientes); return(pratosIngredientes); }
public PratosIngredientesViewModel Put([FromBody] PratosIngredientesViewModel pratosIngredientes) { _app.Update(pratosIngredientes); return(pratosIngredientes); }
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)); }