public static Resultado InsertarHistorial(Entidades.Historial historial) { try { var db = BDConn.Connector(); var result = db.Insert(historial); if (result > 0) { return(new Resultado { Codigo = 1, Mensaje = "Insertado correctamente" }); } else { return(new Resultado { Codigo = 99, Mensaje = "Problemas al insertar" }); } } catch (Exception) { throw; } }
public static Resultado InsertarHistorial(Entidades.Historial historial) { try { return(HistorialDAL.InsertarHistorial(historial)); } catch (Exception) { throw; } }