// A method to create the User Location
        public void CreateUserLocation(UserLocationCreateDTO ulcDto)
        {
            // ulcDto to userLocation model mapping
            UserLocation userLocation = new UserLocation();

            userLocation.UserLocationName = ulcDto.UserLocationName;
            userLocation.Latitude = ulcDto.Latitude;
            userLocation.Longitude = ulcDto.Longitude;
            userLocation.LastEmailTime = DateTime.Now.AddHours(-1.0);
            userLocation.Radius = ulcDto.Radius;
            userLocation.UserId = ulcDto.UserId;

            _db.UserLocations.Add(userLocation);
            _db.SaveChanges();
        }
        // A method to edit the User Location
        public void EditUserLocation(UserLocationEditDTO uleDto)
        {
            // uleDto to userLocation model mapping
            UserLocation userLocation = new UserLocation();

            userLocation.UserLocationName = uleDto.UserLocationName;
            userLocation.Latitude = uleDto.Latitude;
            userLocation.Longitude = uleDto.Longitude;
            userLocation.Radius = uleDto.Radius;
            userLocation.UserId = uleDto.UserId;
            userLocation.LastEmailTime = uleDto.LastEmailTime;
            userLocation.UserLocationId = uleDto.UserLocationId;

            _db.Entry(userLocation).State = EntityState.Modified;
            _db.SaveChanges();
        }