public async Task <ActionResult> Post(Ingredientes ingrediente)
        {
            if (ModelState.IsValid)
            {
                await _repository.Add(ingrediente);

                return(NoContent());
            }
            return(BadRequest());
        }
        public async Task <IActionResult> Create(IngredietesViewModel vm)
        {
            if (ModelState.IsValid)
            {
                var entity = _mapper.Map <Ingredientes>(vm);
                await _Repository.Add(entity);

                return(RedirectToAction(nameof(Index)));
            }
            return(View(vm));
        }