public ActionResult A1C(A1CViewModel model) { if (ModelState.IsValid) { service.InputA1CData(model); return RedirectToAction("Index", "Input"); } return View(model); }
public void InputA1CData(A1CViewModel model) { InputModel dataMappedModel = Mapper.Map<A1CViewModel, InputModel>(model); dataMappedModel.user = _user; AddModel(dataMappedModel); }