public static PlaceWeb PlaceToPlaceWeb(Place place)
        {
            var webImagesList = new List <ImageWeb>();
            int imageId       = 0;

            foreach (var base64Image in place.PhotosBase64List)
            {
                var imgDTO = new ImageWeb
                {
                    Id    = imageId++,
                    Image = base64Image
                };
                webImagesList.Add(imgDTO);
            }

            return(new PlaceWeb
            {
                Id = place.Id,
                Description = place.Description,
                Location = new Location(place.Location.Latitude, place.Location.Longitude),
                Type = place.Type,
                Name = place.Name,
                Images = webImagesList,
                Version = place.Version,

                Bank = place.Bank,
                Bowl = place.Bowl,
                Corners = place.Corners,
                Curb = place.Curb,
                Downhill = place.Downhill,
                Gap = place.Gap,
                Handrail = place.Handrail,
                Hubba = place.Hubba,
                Ledge = place.Ledge,
                Manualpad = place.Manualpad,
                Pyramid = place.Pyramid,
                Rail = place.Rail,
                Wallride = place.Wallride,
                OpenYourMind = place.OpenYourMind,
                Stairs = place.Stairs,
                UserId = place.UserId
            });
        }
        /// <summary>
        /// Initializes the class.
        /// </summary>
        public void initClass()
        {
            if (wasInitiallized)
            {
                return;
            }
            arrayOfNames = new String[4];
            //setting default values to the array


            wasInitiallized              = true;
            this.ImageWebModel           = new ImageWeb();
            ImageWebModel.changeInModel += this.StudentIdsEvent;

            bool result = ImageWebModel.CheckConnection();

            ViewBag.ServerStatus = "True";
            if (!result)
            {
                ViewBag.ServerStatus = "False";
            }
        }