Exemplo n.º 1
0
        public IHttpActionResult RestaurantById(int id)
        {
            var res = _repo.GetById(id);

            if (res != null)
            {
                return(Ok <Restaurant>(res));
            }
            else
            {
                return(NotFound());
            }
        }