//accion guardar
 public ActionResult guardar(Semestre objsemestre)
 {
     if (ModelState.IsValid)
     {
         objsemestre.guardar();
         return(Redirect("~/semestre"));
     }
     else
     {
         return(View("~/Views/semestre/agregareditar.cshtml", objsemestre));
     }
 }