// GET: Guest/Details/5 public ActionResult Details(int year, int?id) { ViewBag.Year = year; if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } return(View(CommonUtils.BuildGuestViewModel(year, GuestsBusinessCtrl.GetGuest(year, (int)id)))); }
// GET: Guest/Delete/5 public ActionResult Delete(int year, int?id) { ViewBag.Year = year; if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } return(View(GuestsBusinessCtrl.GetGuest(year, (int)id))); }