Beispiel #1
0
        public ActionResult DeleteRepairType(int Id)
        {
            bool result = false;
            var  dv     = Ql.RepairDetails.Where(x => x.TypeOfRepair == Id);

            if (dv.Count() > 0)
            {
                result = false;
            }
            else
            {
                string a         = "," + Id + ",";
                int    checkdele = Ql.DeleteRepairType(a);
                if (checkdele > 0)
                {
                    result = true;
                }
            }
            return(Json(result, JsonRequestBehavior.AllowGet));
        }