コード例 #1
0
ファイル: UserService.cs プロジェクト: Wright52/PublicWelfare
 public List<Role> GetAllRole()
 {
     RoleDal roleDal = new RoleDal();
     roleDal.GetAll();
     roleDal.ReturnUnitToPool();
     return roleDal.list_Role;
 }
コード例 #2
0
ファイル: AuthService.cs プロジェクト: Wright52/PublicWelfare
 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;
 }