public JsonResult ChangeStatus(int Id)
        {
            var  dao   = new CarPartCategoryDAO();
            bool check = dao.CheckUsed(Id);

            if (check == false)
            {
                bool?res = dao.ChangeStatus(Id);
                return(Json(new { res = res, used = check, }));
            }
            else
            {
                return(Json(new { used = check, }));
            }
        }
        public JsonResult DeleteCarPartCategory(int Id)
        {
            var  dao    = new CarPartCategoryDAO();
            bool check  = dao.CheckUsed(Id);
            int  result = 2;

            if (check == false)
            {
                result = dao.DeleteCarPartCategory(Id);
                return(Json(new { res = result }));
            }
            else
            {
                return(Json(new { res = result }));
            }
        }