常用方法
常用方法
常用方法
常用方法
public ActionResult CreateEvent(CreateEventVM model) { if (ModelState.IsValid) { db.CreateEvent(model.Event); return(RedirectToAction("ListEvents")); } return(View(model)); }
public ActionResult CreateEvent(CreateEventVM model) { if (ModelState.IsValid) { db.CreateEvent(model.Event); return(RedirectToAction("ListEvents")); } return(View(model)); }