// GET: Webinars/Create public ActionResult Create() { var cw = new CreateWebinar { WebinarTheme = "", congressList = db.Tb_Congress.ToList() }; return(View(cw)); }
public ActionResult CreateWebinarViewModel(CreateWebinar cw) { var webinar = new Webinar { WebinarTheme = cw.WebinarTheme, WebinarInitialDate = cw.WebinarInitialDate, WebinarEndDate = cw.WebinarEndDate, CongressId = cw.congressId }; if (ModelState.IsValid) { } return(View()); }