public virtual ActionResult Edit(Guid id) { var _conference = DataContext.Conferences.SingleOrDefault(c => c.Id == id); var _viewModel = new ConferenceEditViewModel(); _viewModel.Conference = _conference; return View(_viewModel); }
public virtual ActionResult Create() { var _viewModel = new ConferenceEditViewModel(); _viewModel.Conference = new Conference(); return View(_viewModel); }