пофиксила
балдеж
This commit is contained in:
parent
3609582418
commit
3b98ee933a
@ -207,7 +207,7 @@ namespace TransportGuide
|
|||||||
Id = _id ?? 0,
|
Id = _id ?? 0,
|
||||||
Name = textBoxName.Text,
|
Name = textBoxName.Text,
|
||||||
IP = textBoxIP.Text,
|
IP = textBoxIP.Text,
|
||||||
TransportTypeId = comboBoxTransportType.SelectedIndex,
|
TransportTypeId = comboBoxTransportType.SelectedIndex + 1,
|
||||||
StopRoutes = _RouteStops
|
StopRoutes = _RouteStops
|
||||||
};
|
};
|
||||||
var operationResult = _id.HasValue ? _logic.Update(model) :
|
var operationResult = _id.HasValue ? _logic.Update(model) :
|
||||||
|
@ -53,6 +53,7 @@ namespace TransportGuideDatabaseImplements.Models
|
|||||||
Id = model.Id,
|
Id = model.Id,
|
||||||
Name = model.Name,
|
Name = model.Name,
|
||||||
IP = model.IP,
|
IP = model.IP,
|
||||||
|
TransportTypeId = model.TransportTypeId,
|
||||||
Stops = model.StopRoutes.Select(x => new StopRoute
|
Stops = model.StopRoutes.Select(x => new StopRoute
|
||||||
{
|
{
|
||||||
Stop = context.Stops.First(y => y.Id == x.Key),
|
Stop = context.Stops.First(y => y.Id == x.Key),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user