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)); }
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)); }