public bool DATOS_delete(FCCxCStoreProc obj) { try { var resultado = bd.pr_FCCxCStoreProc_Eliminar((int)obj.Id_SP, new ObjectParameter("iCodError", "0")); return(true); } catch (Exception ex) { var msgError = ex.Message; return(false); } }
public bool DATOS_insertar(FCCxCStoreProc obj) { try { var resultado = bd.pr_FCCxCStoreProc_Insertar(obj.Nom_SP, obj.Dsc_SP, new ObjectParameter("iId_SP", "0"), new ObjectParameter("iCodError", "0")); if (resultado == 1) { return(true); } else { return(false); } } catch (Exception ex) { var msgError = ex.Message; return(false); } }
public bool DATOS_update(FCCxCStoreProc obj) { try { var resultado = bd.pr_FCCxCStoreProc_Actualizar((int)obj.Id_SP, obj.Nom_SP, obj.Dsc_SP, new ObjectParameter("iCodError", "0")); if (resultado == 1) { return(true); } else { return(false); } } catch (Exception ex) { var msgError = ex.Message; return(false); } }
public List <FCCxCStoreProc> DATOS_SelectAll() { try { var resTemp = bd.pr_FCCxCStoreProc_SeleccionarTodos(new ObjectParameter("iCodError", "0")).ToList(); List <FCCxCStoreProc> res = new List <FCCxCStoreProc>(); foreach (var r in resTemp) { FCCxCStoreProc n = new FCCxCStoreProc() { Nom_SP = r.Nom_SP, Dsc_SP = r.Dsc_SP }; res.Add(n); } return(res); } catch (Exception ex) { var msgError = ex.Message; } return(null); }