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); }
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))); } }
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))); } }
public AuthParamEntryDataProvider(GlobalSolusindoDb db, tblM_User user, AccessControl accessControl, AuthParamQuery authParamQuery) : base(db, user) { this.accessControl = accessControl; this.authParamQuery = authParamQuery; }