public ShelfDef loadShelfDataByID(string shelfid) { try { using (DBConnection_EF con = DBConnection_EF.GetUContext()) { return(shelfdefDao.LoadShelfByID(con, shelfid)); } } catch (Exception ex) { logger.Error(ex, "Exception"); return(null); } }