예제 #1
0
        public ActionResult Weight(WeightViewModel model)
        {
            if (ModelState.IsValid)
            {

                service.InputWeightData(model);
                return RedirectToAction("Index", "Input");
            }
            return View(model);
        }
예제 #2
0
 public void InputWeightData(WeightViewModel model)
 {
     InputModel dataMappedModel = Mapper.Map<WeightViewModel, InputModel>(model);
     dataMappedModel.user = _user;
     AddModel(dataMappedModel);
 }