private static SecurityModel getUserPermission(string module) { //grab info from db SecurityModel sec = new SecurityModel(); sec.setAllowReadWrite(); return sec; }
private static bool checkAllowToAccessModule(SecurityModel model) { if (model.allowVisit && model.isVisible) return true; return false; }