コード例 #1
0
 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);
 }
コード例 #2
0
 public virtual ActionResult Create()
 {
     var _viewModel = new ConferenceEditViewModel();
     _viewModel.Conference = new Conference();
     return View(_viewModel);
 }