// GET /api/notatwitterapi/5
        public NotATweet Get(int id)
        {
            var notatweet = notatweetRepository.Find(id);

            if (notatweet == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }
            return(notatweet);
        }
示例#2
0
        //
        // GET: /NotATwitter/Details/5

        public ViewResult Details(int id)
        {
            return(View(notatweetRepository.Find(id)));
        }