Beispiel #1
0
        public async Task Add(Location location)
        {
            Object @object = await objectDataService.GetObjectByIMEI(location.Device.IMEI);

            if (@object != null)
            {
                DataAccess.Model.Location mapped =
                    mapper.Map <Location, Object, DataAccess.Model.Location>(location, @object);

                await locationDataService.Add(mapped);
            }
        }
Beispiel #2
0
        public async Task Add(Location location)
        {
            AssetEntity asset = await assetDataService.GetAssetByIMEI(location.Device.DeviceId);

            if (asset != null)
            {
                LocationEntity mapped =
                    mapper.Map <Location, AssetEntity, LocationEntity>(location, asset);

                await locationDataService.Add(mapped);
            }
        }
Beispiel #3
0
        public async Task Add(Location location)
        {
            Asset asset = await assetDataService.GetAssetByIMEI(location.Device.IMEI);

            if (asset != null)
            {
                DataAccess.Model.Location mapped =
                    mapper.Map <Location, Asset, DataAccess.Model.Location>(location, asset);

                await locationDataService.Add(mapped);
            }
        }