public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Event event1 = serviceBusiness.GetEventById(id); if (event1 == null) { return(HttpNotFound()); } return(View(event1)); }
public ActionResult Edit(int id) { Event event1 = serviceBusiness.GetEventById(id); return(View(event1)); }