コード例 #1
0
 public AuthParamUpdateHandler(GlobalSolusindoDb db, tblM_User user, AuthParamValidator authParamValidator, AuthParamFactory authParamFactory, AuthParamQuery authParamQuery, AccessControl accessControl) : base(db, user)
 {
     this.authParamValidator         = authParamValidator;
     this.authParamFactory           = authParamFactory;
     this.authParamQuery             = authParamQuery;
     this.authParamEntryDataProvider = new AuthParamEntryDataProvider(db, user, accessControl, authParamQuery);
 }
コード例 #2
0
 public IHttpActionResult Get(int id)
 {
     ThrowIfUserHasNoRole(readRole);
     using (AuthParamQuery authParamQuery = new AuthParamQuery(Db))
     {
         var data = authParamQuery.GetByPrimaryKey(id);
         SaveLog("AuthParam", "Get", JsonConvert.SerializeObject(new { primaryKey = id }));
         return(Ok(new SuccessResponse(data)));
     }
 }
コード例 #3
0
        public IHttpActionResult Get(int id)
        {
            string accessType = "AuthParam_ViewAll";

            ThrowIfUserCannotAccess(accessType);
            using (AuthParamQuery authParamQuery = new AuthParamQuery(Db))
            {
                var data = authParamQuery.GetByPrimaryKey(id);
                SaveLog("AuthParam", "Get", JsonConvert.SerializeObject(new { primaryKey = id }));
                return(Ok(new SuccessResponse(data)));
            }
        }
コード例 #4
0
 public AuthParamEntryDataProvider(GlobalSolusindoDb db, tblM_User user, AccessControl accessControl, AuthParamQuery authParamQuery) : base(db, user)
 {
     this.accessControl  = accessControl;
     this.authParamQuery = authParamQuery;
 }