public void Update(StationType stationType) { StationType rType = GetStationTypeById(stationType.ID); if (rType == null) return; rType.Title = stationType.Title; rType.Description = stationType.Description; db.SaveChanges(); }
public void Insert(StationType stationType) { db.StationTypes.Add(stationType); db.SaveChanges(); }