Ejemplo n.º 1
0
        public new async Task <User> Update(User user)
        {
            user.UpdatedIn            = DateTime.Now;
            user.HomeAddress.Location = await GetGeopointsByAddress(user.HomeAddress);

            user.Location =
                new GeoJsonPoint <GeoJson2DGeographicCoordinates>(
                    new GeoJson2DGeographicCoordinates(user.Longitude, user.Latitude));
            return(await BaseCollection.FindOneAndReplaceAsync(x => x.Id == user.Id, user));
        }