private void BindTextBoxes()
        {
            HttpResponseMessage eventGalleryResponse = eventGalleryService.GetResponse(galleryID.ToString());

            if (eventGalleryResponse.IsSuccessStatusCode)
            {
                trazeniEvent = eventGalleryResponse.Content.ReadAsAsync <esp_EventGallery_GetByID_Result>().Result;

                nazivInput.Text = trazeniEvent.Naziv;
                opisInput.Text  = trazeniEvent.Opis;
            }
            else
            {
                MessageBox.Show("error loading gallery");
            }
        }
        public IHttpActionResult GetEventGallery(int id)
        {
            esp_EventGallery_GetByID_Result eventGallery = db.esp_EventGallery_GetByID(id).FirstOrDefault();

            return(Ok(eventGallery));
        }