Esempio n. 1
0
        private async void Submit_add_company_Click(object sender, RoutedEventArgs e)
        {
            CompanyModel tempCompany = new CompanyModel(companyName.Text, nip.Text, country.Text, address.Text, city.Text);
            await CompanyProcessor.UploadCompany(tempCompany);

            this.NavigationService.Navigate(new CompaniesPage());
        }
        public ActionResult Registration(Company data)
        {
            bool isSaved = CompanyProcessor.SaveCompany(data);

            if (isSaved)
            {
                ViewBag.Message = "Registraion Successfull";
            }

            return(View());
        }