public TechnologyCreateHandler(GlobalSolusindoDb db, tblM_User user, TechnologyValidator technologyValidator, TechnologyFactory technologyFactory, TechnologyQuery technologyQuery, AccessControl accessControl) : base(db, user) { this.technologyValidator = technologyValidator; this.technologyFactory = technologyFactory; this.technologyQuery = technologyQuery; this.technologyEntryDataProvider = new TechnologyEntryDataProvider(db, user, accessControl, technologyQuery); }
public IHttpActionResult GetForm(int id) { if (id > 0) { ThrowIfUserHasNoRole(readRole); } using (TechnologyEntryDataProvider technologyEntryDataProvider = new TechnologyEntryDataProvider(Db, ActiveUser, AccessControl, new TechnologyQuery(Db))) { var data = technologyEntryDataProvider.Get(id); SaveLog("Technology", "GetForm", JsonConvert.SerializeObject(new { primaryKey = id })); return(Ok(new SuccessResponse(data))); } }