//GET : Details public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } VibeDetail vibe = CreateVibeService().GetVibeDetailsById(id); if (vibe == null) { return(HttpNotFound()); } return(View(vibe)); }
//GET : Delete public ActionResult Delete(int?vibeId) { var id = User.Identity.GetUserId(); if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } VibeDetail vibe = CreateVibeService().GetVibeDetailsByVibeId(vibeId); if (vibe == null) { return(HttpNotFound()); } return(View(vibe)); }