public static string Eliminar(int idebodega, string nombrebodega, string direccion, int responsable) { D_Bodega Datos = new D_Bodega(); E_Bodega Obj = new E_Bodega(); Obj.idebodega = idebodega; Obj.nombrebodega = nombrebodega; Obj.direccion = direccion; Obj.responsable = responsable; return(Datos.Eliminar(Obj)); }
public static string Insertar(string nombrebodega, string direccion, int responsable) { D_Bodega Datos = new D_Bodega(); string Existe = Datos.Existe(nombrebodega); if (Existe.Equals("1")) { return(nombrebodega = "Bodega YA Existe"); } else { E_Bodega Obj = new E_Bodega(); Obj.nombrebodega = nombrebodega; Obj.direccion = direccion; Obj.responsable = responsable; return(Datos.Insertar(Obj)); } }
public static DataTable Buscar(string Valor) { D_Bodega Datos = new D_Bodega(); return(Datos.Buscar(Valor)); }
public static DataTable Seleccionar() { D_Bodega Datos = new D_Bodega(); return(Datos.Seleccionar()); }
public static DataTable Listar() { D_Bodega Datos = new D_Bodega(); return(Datos.Listar()); }