public AsetHistoriUpdateHandler(GlobalSolusindoDb db, tblM_User user, AsetHistoriValidator asetHistoriValidator, AsetHistoriFactory asetHistoriFactory, AsetHistoriQuery asetHistoriQuery, AccessControl accessControl) : base(db, user) { this.asetHistoriValidator = asetHistoriValidator; this.asetHistoriFactory = asetHistoriFactory; this.asetHistoriQuery = asetHistoriQuery; this.asetHistoriEntryDataProvider = new AsetHistoriEntryDataProvider(db, user, accessControl, asetHistoriQuery); }
public IHttpActionResult Get(int id) { ThrowIfUserHasNoRole(readRole); using (AsetHistoriQuery asetHistoriQuery = new AsetHistoriQuery(Db)) { var data = asetHistoriQuery.GetByPrimaryKey(id); SaveLog("AsetHistori", "Get", JsonConvert.SerializeObject(new { primaryKey = id })); return(Ok(new SuccessResponse(data))); } }
public AsetHistoriEntryDataProvider(GlobalSolusindoDb db, tblM_User user, AccessControl accessControl, AsetHistoriQuery asetHistoriQuery) : base(db, user) { this.accessControl = accessControl; this.asetHistoriQuery = asetHistoriQuery; }