public JsonResult DeleteProject(string Id)
        {
            bool checkIsset = true;
            bool result     = false;

            string[] arrId = Id.Split(',');
            foreach (string i in arrId)
            {
                int prjid = Convert.ToInt32(i);
                var dv    = Ql.DeviceOfProjects.Where(x => x.ProjectId == prjid && x.Status == 1).ToList();
                if (dv.Count() > 0)
                {
                    checkIsset = false;
                    break;
                }
            }
            if (checkIsset)
            {
                string a         = "," + Id + ",";
                int    checkdele = Ql.DeleteProject1(a);
                if (checkdele > 0)
                {
                    result = true;
                }
            }
            else
            {
                result = false;
            }
            return(Json(result, JsonRequestBehavior.AllowGet));
        }