public double[] Simulate(int total, string tMin, string tMod, string tMax)
        {
            var tMinNum = _StringToArray(tMin);
            var tMaxNum = _StringToArray(tMax);
            var tModNum = _StringToArray(tMod);

            var result = MonteCarlo.simulate(total, tMinNum, tModNum, tMaxNum);

            var monteResult = new MonteResult
            {
                Id         = Guid.NewGuid().ToString(),
                InputMax   = tMaxNum,
                InputMin   = tMinNum,
                InputMod   = tModNum,
                InputTotal = total,
                Result     = result
            };

            this.HistoryRepository.Create(monteResult);

            return(result);
        }
 public void Delete(MonteResult result)
 {
     this.Context.Delete(result);
 }
 public void Update(MonteResult result)
 {
     this.Context.Update(result);
 }
 public void Create(MonteResult result)
 {
     this.Context.Create(result);
 }