Пример #1
0
        public IHttpActionResult Get(int id)
        {
            IHttpActionResult result;
            Coffee            coffee = repository.GetByID((int)id);

            if (coffee != null)
            {
                result = Json <Coffee>(coffee);
            }
            else
            {
                result = NotFound();
            }

            return(result);
        }