public void Add(ILocation location) { if (LocationExists(location)) { return; } _mrRobotContext.Locations.Add((Location)location); _mrRobotContext.SaveChanges(); }
public void Add(IRobot robot) { _mrRobotContext.Robots.Add((Robot)robot); _mrRobotContext.SaveChanges(); }