public ActionResult Solicitud(Request Req) { try { if (ModelState.IsValid) { Req.UserId = User.Identity.GetUserId(); RepoDapper Repo = new RepoDapper(); Repo.LlenarSolicitud(Req); ViewBag.Message = "Su solicitud se envio."; } //return View(); return(RedirectToAction("Index")); } catch { ViewBag.Message = "Su solicitud no se envio."; return(View()); } }