예제 #1
0
        // 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)));
        }