示例#1
0
        public IHttpActionResult Get(int id)
        {
            IHttpActionResult result;
            Species           species = repository.GetByID((int)id);

            if (species != null)
            {
                result = Json <Species>(species);
            }
            else
            {
                result = NotFound();
            }

            return(result);
        }