private void CreateCompany(object sender, RoutedEventArgs e)
        {
            ValidateForm();
            if (!IsFormValid())
            {
                return;
            }

            var owner     = new Owner(StorageService.RetrieveUserId());
            var locations = new List <Location>
            {
                new Location("Belgie", Input_CompanyCity.Text, int.Parse(Input_CompanyPostal.Text), Input_CompanyStreet.Text, int.Parse(Input_CompanyNumber.Text))
            };

            var openingHours = GetOpeningHours();

            var socialMedia = new SocialMedia(cb_Facebook.IsChecked == null ? null : cb_Facebook.IsChecked == false ? null : sm_Facebook.Text,
                                              cb_Twitter.IsChecked == null ? null : cb_Twitter.IsChecked == false ? null : sm_Twitter.Text,
                                              cb_Youtube.IsChecked == null ? null : cb_Youtube.IsChecked == false ? null : sm_Youtube.Text,
                                              cb_Google.IsChecked == null ? null : cb_Google.IsChecked == false ? null : sm_Google.Text);

            var company = new DataModel.Company()
            {
                Name         = Input_CompanyName.Text,
                Description  = Input_CompanyDescription.Text,
                KeyWords     = Input_CompanyKeywords.Text,
                Categorie    = (Categories)Input_CategoryComboBox.SelectedItem,
                Owner        = owner,
                Locations    = locations,
                OpeningHours = openingHours,
                //LeaveOfAbsence = leaveOfAbsence,
                SocialMedia = socialMedia
            };

            this._vm.CreateCompany(company.Name, company.Description, company.KeyWords, company.Categorie, company.Owner, company.Locations, company.OpeningHours.ToList(), "", company.SocialMedia);
        }
 public Company()
 {
     _company = new DataModel.Company();
 }