예제 #1
0
 public IActionResult EditarArea(AreaExperienciaEducativa area)
 {
     using (sgcfieeContext context = new sgcfieeContext())
     {
         context.AreaExperienciaEducativa.Update(area);
         context.SaveChanges();
         TempData["mensaje"] = "datos acrualizados correctamente";
         return(RedirectToAction("MostrarArea"));
     }
 }
예제 #2
0
 public IActionResult CrearArea(AreaExperienciaEducativa area)
 {
     using (sgcfieeContext context = new sgcfieeContext())
     {
         context.AreaExperienciaEducativa.Add(area);
         context.SaveChanges();
         TempData["mensaje"] = "El area se guardo correctamente";
         return(RedirectToAction("Index"));
     }
 }