Exemplo n.º 1
0
        public ActionResult DeleteTehsil(int ID)
        {
            List <HG_OrganizationDetails> ListOrg = new HG_OrganizationDetails().GetAll();
            var CityContains = ListOrg.FindAll(x => x.DistrictId == ID);

            if (CityContains.Count > 0)
            {
                return(Json(new { msg = "Data already used" }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                int i = District.Dell(ID);
            }
            return(Json(new { data = "1" }, JsonRequestBehavior.AllowGet));
        }