Esempio n. 1
0
        public async Task <int> SaveRover(Rover.Domain.Rover rover)
        {
            var persistenceRover = Mapper.Map <PersistenceRover>(rover);

            _context.Rovers.Add(persistenceRover);
            return(await _context.SaveChangesAsync());
        }
        public async Task <int> SavePlateau(LandBase plateau)
        {
            var persistencePlateau = Mapper.Map <PersistencePlateau>(plateau);

            _context.Plateaus.Add(persistencePlateau);
            return(await _context.SaveChangesAsync());
        }