public async Task<ActionResult> Index(FeedbackViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return View(model);
            }

            await mediator.SendAsync(model.ToRequest());
            return View("FeedbackSent");
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> Index(FeedbackViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            await mediator.SendAsync(model.ToRequest());

            return(View("FeedbackSent"));
        }