почти исправила
This commit is contained in:
parent
77a0ad2708
commit
d2cf0e10b7
@ -37,8 +37,9 @@ namespace BeautySalon
|
|||||||
var newService = new Service
|
var newService = new Service
|
||||||
{
|
{
|
||||||
ServiceId = _id ?? 0,
|
ServiceId = _id ?? 0,
|
||||||
SpecialisationId = (comboBoxSpecialisation.SelectedItem as Service)!.ServiceId,
|
SpecialisationId = (comboBoxSpecialisation.SelectedItem as Specialisation)!.SpecialisationId,
|
||||||
Price = (int)numericUpDownPrice.Value
|
ServiceName = textBoxName.Text,
|
||||||
|
Price = (double)numericUpDownPrice.Value
|
||||||
};
|
};
|
||||||
serviceStorage.Update(newService);
|
serviceStorage.Update(newService);
|
||||||
}
|
}
|
||||||
@ -46,8 +47,9 @@ namespace BeautySalon
|
|||||||
{
|
{
|
||||||
var newService = new Service
|
var newService = new Service
|
||||||
{
|
{
|
||||||
SpecialisationId = (comboBoxSpecialisation.SelectedItem as Service)!.ServiceId,
|
SpecialisationId = (comboBoxSpecialisation.SelectedItem as Specialisation)!.SpecialisationId,
|
||||||
Price = (int)numericUpDownPrice.Value
|
ServiceName = textBoxName.Text,
|
||||||
|
Price = (double)numericUpDownPrice.Value
|
||||||
};
|
};
|
||||||
serviceStorage.Add(newService);
|
serviceStorage.Add(newService);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user