public void CompleteCopyingBasicData(PeriodId periodId, PeriodState preState) { using (var scope = new TransactionScope()) { var period = periodRep.GetById(periodId); period.CompleteCopyingBasicData(periodManagerService, preState); scope.Complete(); } }
public PeriodState Sub(PeriodState o) { owin[ocount % buf_size] = default; ocount++; // Known issue: increment by 1 only works with a sliding window of step size 1. return(this); }
public Period(long id, string name, PeriodState state) { Id = id; Name = name; State = state; }