Esempio n. 1
0
        public void Add(ILocation location)
        {
            if (LocationExists(location))
            {
                return;
            }

            _mrRobotContext.Locations.Add((Location)location);
            _mrRobotContext.SaveChanges();
        }
Esempio n. 2
0
 public void Add(IRobot robot)
 {
     _mrRobotContext.Robots.Add((Robot)robot);
     _mrRobotContext.SaveChanges();
 }