Exemplo n.º 1
0
        public void SetCoords(Customer cust)
        {
            GeoLocation geo    = new GeoLocation();
            var         coords = geo.GetLatandLong(cust);

            cust.lat = coords["lat"];
            cust.lng = coords["lng"];
            db.SaveChanges();
        }
Exemplo n.º 2
0
        public void SetCoords(Contractor cont)
        {
            GeoLocation geo    = new GeoLocation();
            var         coords = geo.GetLatandLong(cont);

            cont.lat = coords["lat"];
            cont.lng = coords["lng"];
            db.SaveChanges();
        }
Exemplo n.º 3
0
        public void SetCoords(Job job)
        {
            GeoLocation geo    = new GeoLocation();
            var         coords = geo.GetLatandLong(job);

            job.lat = coords["lat"];
            job.lng = coords["lng"];
            db.SaveChanges();
        }