private static void CreateTempToCut(CutModel cutModel) { var result = new List<Stock>(); result.Add(new Stock() { Length = 4024, Quantity = 2 }); result.Add(new Stock() { Length = 1048, Quantity = 5 }); result.Add(new Stock() { Length = 100, Quantity = 20 }); cutModel.ToCut = result; }
private void ClearResult(CutModel cutmodel) { CutModel.Solve = null; }
private static void CreateTempStock(CutModel cutModel) { var result = new List<Stock>(); result.Add(new Stock() { Length = 6000, Quantity = 10 }); cutModel.Stocks = result; }
public ActionResult Clear() { CutModel = new CutModel(); return View("Index",CutModel); }