public ActionResult FieldP() { ShortTitle = "p"; var m = new VFieldP(); SolverData sd = GetSolverData(); ObjectMapperManager.DefaultInstance.GetMapper<FieldP, VFieldP>().Map(sd.FieldP, m); return View(m); }
public ActionResult FieldPSave(VFieldP m) { ShortTitle = "p"; SolverData sd = GetSolverData(); ObjectMapperManager.DefaultInstance.GetMapper<VFieldP, FieldP>().Map(m, sd.FieldP); SetSolverData(sd); if (Request.IsAjaxRequest()) return Json("OK"); return View(m); }