//A0.01 Start public List <UASUSRGRP> loadAllUserGroup() { DBConnection_EF conn = null; List <UASUSRGRP> userGrp = new List <UASUSRGRP>(); try { conn = DBConnection_EF.GetContext(); conn.BeginTransaction(); userGrp = userGroupDao.loadAllUserGroup(conn); conn.Commit(); } catch (Exception ex) { logger.Warn("Load All User Group Function Failed from UASUFNC ", ex); } finally { if (conn != null) { try { conn.Close(); } catch (Exception exception) { logger.Warn("Close Connection Failed.", exception); } } } return(userGrp); }