Пример #1
0
 public ActionResult InputData(VWindFarm model)
 {
     lock (_model)
     {
         _model.StartTime = model.StartTime;
         _model.StopTime = model.StopTime;
         _model.TimeStep = model.TimeStep;
         _model.Scale = model.Scale;
         return View(_model);
     }
 }
Пример #2
0
 public ActionResult InputData()
 {
     var model = new VWindFarm();
     if (_model == null)
     {
         _model = new VWindFarm();
         InitWindFarm();
     }
     ObjectMapperManager.DefaultInstance.GetMapper<VWindFarm, VWindFarm>().Map(_model, model);
     return View(model);
 }