public static bool deleteRack(uint id, int type) { try { return(RackDAL.deleteRackByid((int)id, (int)type)); } catch (Exception ex) { throw ex; } }
public void DeleteRack(int rackid) { try { RackDAL.deleteRackByid(rackid); } catch (Exception ex) { throw ex; } }
public int InsertRack(Rack model) { try { return(RackDAL.InsertRack(model)); } catch (Exception ex) { throw ex; } }
public static List <Rack> GetRackAllStorage() { try { DataSet ds = RackDAL.getRackDatasetAllStorage(); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { return(DataTableToRack(ds.Tables[0])); } return(null); } catch (Exception ex) { throw ex; } }
public static Rack GetRackModelByCoordinate(int x, int y, int z, int type) { try { DataSet ds = RackDAL.getRackDatasetByCoordinate(x, y, z, type); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { return(DataTableToRack(ds.Tables[0])[0]); } return(null); } catch (Exception ex) { throw ex; } }
public static Rack GetRackModelByid(int id) { try { DataSet ds = RackDAL.getRackDatasetById(id); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { return(DataTableToRack(ds.Tables[0])[0]); } return(null); } catch (Exception ex) { throw ex; } }