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