// GET /api/notatwitterapi/5 public NotATweet Get(int id) { var notatweet = notatweetRepository.Find(id); if (notatweet == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } return(notatweet); }
// // GET: /NotATwitter/Details/5 public ViewResult Details(int id) { return(View(notatweetRepository.Find(id))); }