public ActionResult TurbineTypes() { ShortTitle = "Turbine Types"; var m = new VTurbineType(); var sd = GetSolverData(); ObjectMapperManager.DefaultInstance.GetMapper<TurbinePropertiesData, VTurbineType>().Map(sd.TurbineProperties, m); return View(m); }
public ActionResult TurbineTypesSave(VTurbineType m) { ShortTitle = "Turbine Types"; var sd = GetSolverData(); ObjectMapperManager.DefaultInstance.GetMapper<VTurbineType, TurbinePropertiesData>().Map(m, sd.TurbineProperties); SetSolverData(sd); if (Request.IsAjaxRequest()) return Json("OK"); return View(m); }