Example #1
0
 //Guarda utilizando un Storedprocedure de sql
 public string SaveSP(tbl_prueba dat_tblprueba)
 {
     try
     {
         modeldbentidades.SP_Ins_tblprueba(dat_tblprueba.NID, dat_tblprueba.Nombre, dat_tblprueba.Fecha, dat_tblprueba.activo);
         return("Saved");
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
 public string Save(tbl_prueba dat_tblPrueba)
 {
     try
     {
         modeldbentidades.tbl_prueba.Add(dat_tblPrueba);
         modeldbentidades.SaveChanges();
         return("Saved");
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }