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