public IActionResult Edit(int id, TrainingCategory TrainingCategory) { try { // TODO: Add update logic here _ITraining.UpdateTrainingCategory(TrainingCategory); return(RedirectToAction("Index")); } catch { return(View()); } }
public IActionResult Edit(int id, TrainingCategory TrainingCategory) { try { // TODO: Add update logic here _ITraining.UpdateTrainingCategory(TrainingCategory); return(RedirectToAction("Index")); } catch { return(View()); } }