Пример #1
0
        public JsonResult SavePolygon(string polygonJSON, int SiteName, string officelat, string officelong)
        {
            ObjectParameter resultvalue     = new ObjectParameter("ERROR", typeof(int));
            SiteMaster      updatedCustomer = (from c in db.SiteMasters
                                               where c.Id == SiteName
                                               select c).FirstOrDefault();

            updatedCustomer.lattitude = officelat;
            updatedCustomer.longitute = officelong;



            int insertedRecords = db.SaveChanges();

            db.Sp_InsertPolygon(polygonJSON, Convert.ToInt32(SiteName), resultvalue);



            return(Json(JsonRequestBehavior.AllowGet));
        }