public IActionResult AddRadnikOdrzavanjeObjekata([FromBody] RadiUView radiUView, int idParka)
 {
     try
     {
         ParkView park = DataProvider.VratiPark(idParka);
         radiUView.Park = park;
         DataProvider.DodajRadnikaOdrzavanjeObjekata(radiUView);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.ToString()));
     }
 }
        //
        // GET: /Park/
        public ActionResult Index(string name)
        {
            var park     = GetDatabase().GetCollection <Park>("Parks").FindOne(Query.EQ("Name", name));
            var parkView = new ParkView();

            parkView.Park = park;
            if (park.Location != null)
            {
                parkView.PoliceStations = GetPolice(park.Location.Longitude, park.Location.Latitude);
                parkView.FireStattions  = GetFireStations(park.Location.Longitude, park.Location.Latitude);
            }
            else
            {
                parkView.PoliceStations = new List <Police>();
                parkView.FireStattions  = new List <FireStation>();
            }

            return(View(parkView));
        }