public bool DeleteDock(Dock Dock) { throw new NotImplementedException(); }
public Dock CreateDock(Dock Dock) { throw new NotImplementedException(); }
public Dock CreateDock(Dock dock) { db.DockList.Add(dock); return dock; }
public bool DeleteDock(Dock dock) { return db.DockList.Remove(dock); }
public Dock UpdateDock(Dock dock) { var old = db.DockList.Single(x => x.DockId == dock.DockId); db.DockList[db.DockList.IndexOf(old)] = dock; return dock; }