public IActionResult EditUserTraining(int id, UserTraining UserTraining) { try { _ITraining.UpdateUserTraining(UserTraining); return(RedirectToAction("UserTraining")); } catch { return(View()); } }