/// <summary> /// Saves customer locations /// </summary> /// <param name="customerId"></param> /// <param name="loadStops"></param> private void SaveLocations(Guid customerId, List <LoadStopData> loadStops) { if (loadStops != null) { var locations = _mapper.Map <List <LocationData> >(loadStops); _locationService.AddOrUpdateLocations(customerId, locations, _userContext.UserName); } }