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);
 }
Пример #2
0
 public IHttpActionResult GetForm(int id)
 {
     if (id > 0)
     {
         ThrowIfUserHasNoRole(readRole);
     }
     using (AsetHistoriEntryDataProvider asetHistoriEntryDataProvider = new AsetHistoriEntryDataProvider(Db, ActiveUser, AccessControl, new AsetHistoriQuery(Db)))
     {
         var data = asetHistoriEntryDataProvider.Get(id);
         SaveLog("AsetHistori", "GetForm", JsonConvert.SerializeObject(new { primaryKey = id }));
         return(Ok(new SuccessResponse(data)));
     }
 }