This commit is contained in:
parent
094e38cd1d
commit
3c0410d83a
@ -39,9 +39,14 @@ public partial class MainWindow : Window
|
||||
|
||||
private void LoadServices()
|
||||
{
|
||||
Services.Add(new Service { Name = "Услуга 1", Price = 100, Duration = 30, Discount = 0 });
|
||||
Services.Add(new Service { Name = "Услуга 2", Price = 200, Duration = 60, Discount = 10 });
|
||||
Services.Add(new Service { Name = "Услуга 3", Price = 150, Duration = 45, Discount = 20 });
|
||||
using (var context = new AppDbContext())
|
||||
{
|
||||
var services = context.Services.ToList();
|
||||
foreach (var service in services)
|
||||
{
|
||||
Services.Add(service);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateFilteredServices()
|
||||
|
Loading…
Reference in New Issue
Block a user