示例#1
0
        public IActionResult CreateUserTraining(UserTraining UserTraining)
        {
            try
            {
                // TODO: Add insert logic here

                if (ModelState.IsValid)
                {
                    _ITraining.InsertUserTraining(UserTraining);
                    return(RedirectToAction("UserTraining", new { UserId = UserTraining.UserId }));
                }
                return(View(UserTraining));
            }
            catch
            {
                return(View());
            }
        }