Esempio n. 1
0
 public ActionResult Create(DietViewModel vm)
 {
     _dietService.RegisterDietForUser(vm, User.Identity.Name);
     _dietService.UpdateDate(vm.DietId, vm.Date);
     return(RedirectToAction("Index"));
 }