Beispiel #1
0
 public List<Role> GetAllRole()
 {
     RoleDal roleDal = new RoleDal();
     roleDal.GetAll();
     roleDal.ReturnUnitToPool();
     return roleDal.list_Role;
 }
Beispiel #2
0
 public ResponseStatus GetSecondAuth(HttpCookieCollection cookies, Container_Authority_Msg auth)
 {
     if (cookies[GLB.userId] == null)
     {
         auth.isAdd = false;
         auth.isDelete = false;
         auth.isUpdate = false;
         return ResponseStatus.SUCCESS;
     }
     auth.isVisit = false;
     string userId = cookies[GLB.userId].Value.ToString();
     RoleDal roleDal = new RoleDal();
     //Container_Authority_Msg auth = new Container_Authority_Msg();
     ResponseStatus resp = roleDal.GetSecondAuth(userId, auth);
     roleDal.ReturnUnitToPool();
     return resp;
 }