Beispiel #1
0
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            UnHashtags hashtag = hashtagManager.Find(x => x.Id == id.Value);

            if (hashtag == null)
            {
                return(HttpNotFound());
            }
            return(View(hashtag));
        }
Beispiel #2
0
        public ActionResult Hashtag(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            UnHashtags hash = hashtagManager.Find(x => x.Id == id.Value);

            if (hash == null)
            {
                return(HttpNotFound());
            }

            return(View("Index", hash.Notes));
        }