示例#1
0
 // 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))));
 }
示例#2
0
 // 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)));
 }