Ejemplo n.º 1
0
        public ActionResult Set(WorkoutSetViewModel vmIn)
        {
            if (vmIn.UserId <= 0)
            {
                throw new Exception("userId not set");
            }

            _WorkoutService.AddSet(vmIn.UserId, vmIn.Reps);

            //var vmOut = GetSetViewModel(vmIn.UserId);
            return(RedirectToAction(nameof(Set), new { UserId = vmIn.UserId }));
        }