public ActionResult Edit(Guid id)
{
var instructor = RepositoryFactory.InstructorRepository.GetNullableById(id);
if (instructor == null) return RedirectToAction("Index");
var viewModel = InstructorViewModel.Create(Repository);
viewModel.Instructor = instructor;
return View(viewModel);
}