public ActionResult Create(clsPeriodoVM oPeriodoVM) { try { if (ModelState.IsValid) { clsPeriodo oPeriodo = new clsPeriodo(clsAppInfo.Connection); DataMove(oPeriodo, oPeriodoVM, false); if (oPeriodo.Insert()) { return(RedirectToAction("Index")); } } return(View(oPeriodoVM)); } catch (Exception e) { return(RedirectToAction("httpErrorMsg", "Error", new { MessageErr = e.Message })); } }