public KotaCreateHandler(GlobalSolusindoDb db, tblM_User user, KotaValidator kotaValidator, KotaFactory kotaFactory, KotaQuery kotaQuery, AccessControl accessControl) : base(db, user) { this.kotaValidator = kotaValidator; this.kotaFactory = kotaFactory; this.kotaQuery = kotaQuery; this.kotaEntryDataProvider = new KotaEntryDataProvider(db, user, accessControl, kotaQuery); }
public IHttpActionResult Get(int id) { ThrowIfUserHasNoRole(readRole); using (KotaQuery kotaQuery = new KotaQuery(Db)) { var data = kotaQuery.GetByPrimaryKey(id); SaveLog("Kota", "Get", JsonConvert.SerializeObject(new { primaryKey = id })); return(Ok(new SuccessResponse(data))); } }
public KotaEntryDataProvider(GlobalSolusindoDb db, tblM_User user, AccessControl accessControl, KotaQuery kotaQuery) : base(db, user) { this.accessControl = accessControl; this.kotaQuery = kotaQuery; }