public long StartNewEstimationProcess() { var currentEstimationProcess = GetCurrentEstimationProcess(); if (currentEstimationProcess != null) { return(currentEstimationProcess.Id); } var process = EstimationProcess.StartNew(); _processRepository.Create(process); return(process.Id); }
public EstimationProcess GetCurrentEstimationProcess() { return(EstimationProcess.GetInstance()); }