public void Execute() { using (ITransaction transaction = Store.BeginTransaction()) { SystemInformationStatistic stat = new SystemInformationStatistic(transaction); stat.UpdateModel(); } }
public dynamic Execute(dynamic parameters, INancyModule module) { module.RequiresAuthentication(); using (ITransaction transaction = _store.BeginTransaction()) { var model = new SystemInformationStatistic(transaction).GetModel(); return(model); } }