public IActionResult Edit(EditCourseViewModel vm)
 {
     if (ModelState.IsValid)
     {
         vm.Course.Instructor = context.Read(vm.UserId);
         context.UpdateCourse(vm.Course.Id, vm.Course);
         return(RedirectToAction("Index"));
     }
     return(View(vm));
 }