Ejemplo n.º 1
0
 public UserController()
 {
     _userContext         = new UserContext();
     _userLocations       = new UserLocationsContext();
     _relationshipContext = new RelationshipContext();
     webservice           = new _3FWebService();
 }
Ejemplo n.º 2
0
        //Share user location
        public ActionResult ShareUserLocation(string userId, double longtitude, double lattitude)
        {
            if (userId == null)
            {
                return(View());
            }
            UserLocations userLocations = UserLocationsContext.GetLocation(userId);

            if (userLocations == null)
            {
                List <Location> locations = new List <Location>();
                locations.Add(new Location(longtitude, lattitude));
                userLocations = new UserLocations(ObjectId.Parse(userId), locations);
            }
            userLocations.locations.Add(new Location(longtitude, lattitude));
            return(View());
        }
Ejemplo n.º 3
0
 public UserLocationController()
 {
     _userLocationContext = new UserLocationsContext();
 }