示例#1
0
        public IActionResult Index()
        {
            var sservice = new SingleServiceViewModel
            {
                Services = _serviceRepository.GetServices()
            };



            return(View(sservice));
        }
        public MainPage()
        {
            this.InitializeComponent();

            ApplicationView.PreferredLaunchViewSize      = new Size(1000, 440);
            ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.PreferredLaunchViewSize;

            App.Current.Suspending += App_Suspending;

            this.Context     = new RulesDbContext();
            this.ViewModel   = new SingleServiceViewModel(new ServiceProvider("services.json", ApplicationData.Current.LocalFolder), this.Context);
            this.DataContext = this.ViewModel;

            this.FillComboBoxes();
        }