// GET: Field/Details/5
        public ActionResult Details(int id)
        {
            var            nighborhood    = neighborhoodService.GetNeighborhoodById(id);
            NeighborhoodVM neighborhoodVM = new NeighborhoodVM()
            {
                ID   = nighborhood.ID,
                Name = nighborhood.Name
            };

            return(View(neighborhoodVM));
        }
예제 #2
0
        public IHttpActionResult Get(int neighborhoodId)
        {
            NeighborhoodService neighService = CreateNeighborhoodService();
            var neighs = neighService.GetNeighborhoodById(neighborhoodId);

            return(Ok(neighs));
        }