Example #1
0
        public Snapshot Insert(DroneSnapshotDto snapshot)
        {
            Snapshot entity = mapper.Map <DroneSnapshotDto, Snapshot>(snapshot);

            snapshotRepository.Insert(entity);

            SnapshotModel model = mapper.Map <DroneSnapshotDto, SnapshotModel>(snapshot);

            reportService.Update(model);

            return(entity);
        }