예제 #1
0
 public ActionResult BloodSugar(BloodSugarViewModel model)
 {
     if (ModelState.IsValid)
     {
         service.InputBloodSugarData(model);
         return RedirectToAction("Index", "Input");
     }
     return View(model);
 }
예제 #2
0
 public void InputBloodSugarData(BloodSugarViewModel model)
 {
     InputModel dataMappedModel = Mapper.Map<BloodSugarViewModel, InputModel>(model);
     dataMappedModel.user = _user;
     AddModel(dataMappedModel);
 }