Exemplo n.º 1
0
 public IActionResult EditarCertificacion(TipoCertificacion cert)
 {
     using (sgcfieeContext context = new sgcfieeContext())
     {
         context.TipoCertificacion.Update(cert);
         context.SaveChanges();
     }
     return(RedirectToAction("MostrarCertificacion"));
 }
Exemplo n.º 2
0
 public IActionResult CrearCertificado(TipoCertificacion certificado)
 {
     using (sgcfieeContext context = new sgcfieeContext())
     {
         context.TipoCertificacion.Add(certificado);
         context.SaveChanges();
     }
     return(RedirectToAction("MostrarCertificacion"));
 }