public List <ShelfDef> GetShelfByZoneID(string zoneid) { try { using (DBConnection_EF con = DBConnection_EF.GetUContext()) { var result = shelfdefDao.LoadShelfByZone(con, zoneid); return(result); } } catch (Exception ex) { logger.Error(ex, "Exception"); return(null); } }