Exemplo n.º 1
0
        public IHttpActionResult Get(int id)
        {
            MyParkService myParkService = CreateMyParkService();
            var           myPark        = myParkService.GetMyParkByID(id);

            return(Ok(myPark));
        }
Exemplo n.º 2
0
        private MyParkService CreateMyParkService()
        {
            var userId        = Guid.Parse(User.Identity.GetUserId());
            var myParkService = new MyParkService(userId);

            return(myParkService);
        }
Exemplo n.º 3
0
        public IHttpActionResult GetAll()
        {
            MyParkService myParkService = CreateMyParkService();
            var           myParks       = myParkService.GetMyPark();

            return(Ok(myParks));
        }