示例#1
0
        public SalesGeoInfo GetSale()
        {
            SalesGeoInfo sale = new SalesGeoInfo();

            using (db = new SDCManagementSystem_Test3Entities())
            {
                sale = db.SalesGeoInfoes.Where(x => x.SaleId == 487834).FirstOrDefault();

                return(sale);
            }
        }
示例#2
0
 public void UpdateSaleGeoInfo(int SaleId, string lat, string lng)
 {
     using (db = new SDCManagementSystem_Test3Entities())
     {
         SalesGeoInfo vhs = db.SalesGeoInfoes.Where(x => x.SaleId == SaleId).FirstOrDefault();
         if (vhs != null)
         {
             vhs.lat = lat;
             vhs.lng = lng;
             db.SaveChanges();
         }
     }
 }