public async Task <IActionResult> Create(RecetaViewModel model) { if (ModelState.IsValid) { var receta = await _converterHelper.ToRecetaAsync(model); await _recetaRepository.CreateAsync(receta); return(RedirectToAction(nameof(Index))); } return(View(model)); }