Example #1
0
 //[Route("Markers/{postalCode}")]
 public ActionResult Markers(UserGeoLocation data)
 {
     try
     {
         var userGeoCoord = new UserGeoWithLocations
         {
             Latitude  = data.Latitude,
             Longitude = data.Longitude,
             Locations = m.LocationGetAll()
         };
         return(View(userGeoCoord));
     }
     catch
     {
         return(View("Index"));
     }
 }
Example #2
0
        //[Route("Markers/{postalCode}")]
        public ActionResult Markers(string postalCode, double zoom)
        {
            //SetTemp(postalCode);
            if (postalCode.IsEmpty())
            {
                return(View("Index"));
            }
            var data         = m.GetUserLatLngCoords(postalCode);
            var userGeoCoord = new UserGeoWithLocations
            {
                Latitude  = data[0],
                Longitude = data[1],
                zoomsize  = zoom,
                Locations = m.LocationGetAll()
            };

            return(View(userGeoCoord));
        }