public async Task <Lacteo> LacteoById([Service] IngredientesRepository repo, [Service] ITopicEventSender eventSender, int id) { Lacteo lacteoId = repo.GetLacteoId(id); await eventSender.SendAsync("RetornaLacteo", lacteoId); return(lacteoId); }
public async Task ModificarVerduraFruta([Service] IngredientesRepository repo, [Service] ITopicEventSender eventSender, int idVerdura, String nombre, bool alergeno) { VerduraFruta editVerduraFruta = await repo.ModificarVerduraFrutaAsync(idVerdura, nombre, alergeno); await eventSender.SendAsync("Editado Verdura/Fruta", editVerduraFruta); }
public async Task ModificarCarnePescado([Service] IngredientesRepository repo, [Service] ITopicEventSender eventSender, int idCarne, String nombre, bool alergeno) { CarnePescado editCarnePescado = await repo.ModificarCarnePescadoAsync(idCarne, nombre, alergeno); await eventSender.SendAsync("Editado Carne/Pescado", editCarnePescado); }
public PlatoController(PlatoRepository repository, IMapper mapper, IngredientesRepository repositoryIngredientes, PlatoIngredienteRepository platoIngredienteRepository) { _mapper = mapper; _repository = repository; _repositoryIngredientes = repositoryIngredientes; _platoIngredienteRepository = platoIngredienteRepository; }
public async Task CrearHarinaCereal([Service] IngredientesRepository repo, [Service] ITopicEventSender eventSender, int idCereal, String nombre, bool alergeno) { HarinaCereal newHarinaCereal = await repo.CrearHarinaCerealAsync(idCereal, nombre, alergeno); await eventSender.SendAsync("Guardado Harina/Cereal", newHarinaCereal); }
public async Task CrearLacteo([Service] IngredientesRepository repo, [Service] ITopicEventSender eventSender, int idLacteo, String nombre, bool alergeno) { Lacteo newLacteo = await repo.CrearLacteoAsync(idLacteo, nombre, alergeno); await eventSender.SendAsync("Guardado Lacteo", newLacteo); }
public async Task CrearCarnePescado([Service] IngredientesRepository repo, [Service] ITopicEventSender eventSender, int idCarne, String nombre, bool alergeno) { CarnePescado newCarnePescado = await repo.CrearCarnePescadoAsync(idCarne, nombre, alergeno); await eventSender.SendAsync("Guardado Carne/Pescado", newCarnePescado); }
public async Task CrearVerduraFruta([Service] IngredientesRepository repo, [Service] ITopicEventSender eventSender, int idVerdura, String nombre, bool alergeno) { VerduraFruta newVerduraFruta = await repo.CrearVerduraFrutaAsync(idVerdura, nombre, alergeno); await eventSender.SendAsync("Guardado Verdura/Fruta", newVerduraFruta); }
public async Task <HarinaCereal> HarinaCerealById([Service] IngredientesRepository repo, [Service] ITopicEventSender eventSender, int id) { HarinaCereal harinaId = repo.GetHarinaCerealId(id); await eventSender.SendAsync("RetornaHarina", harinaId); return(harinaId); }
public async Task ModificarHarinaCereal([Service] IngredientesRepository repo, [Service] ITopicEventSender eventSender, int idCereal, String nombre, bool alergeno) { HarinaCereal editHarinaCereal = await repo.ModificarHarinaCerealAsync(idCereal, nombre, alergeno); await eventSender.SendAsync("Editado Harina/Cereal", editHarinaCereal); }
public async Task <VerduraFruta> VerduraFrutaById([Service] IngredientesRepository repo, [Service] ITopicEventSender eventSender, int id) { VerduraFruta verduraId = repo.GetVerduraFrutaId(id); await eventSender.SendAsync("RetornaVerdura", verduraId); return(verduraId); }
public async Task <CarnePescado> CarnePescadoById([Service] IngredientesRepository repo, [Service] ITopicEventSender eventSender, int id) { CarnePescado carneId = repo.GetCarnePescadoId(id); await eventSender.SendAsync("RetornaCarne", carneId); return(carneId); }
public IngredientesController(IngredientesRepository repository, IMapper mapper) { _repository = repository; _mapper = mapper; }
// I N G R E D I E N T E S public List <CarnePescado> AllCarnePescado([Service] IngredientesRepository repo) => repo.GetCarnePescado();
public List <Lacteo> AllLacteo([Service] IngredientesRepository repo) => repo.GetLacteos();
public List <HarinaCereal> AllHarinaCereal([Service] IngredientesRepository repo) => repo.GetHarinaCereal();
public List <VerduraFruta> AllCarneVerduraFruta([Service] IngredientesRepository repo) => repo.GetVerduraFruta();
public IngredientesController(IngredientesRepository repository) { _repository = repository; }
public IngredientesController(IMapper mapper, IngredientesRepository repository, CenaContext context) { _mapper = mapper; _Repository = repository; _context = context; }