/// <summary>
 /// 删除数据
 /// </summary>
 /// <returns></returns>
 public IActionResult Del()
 {
     try
     {
         int             id        = Convert.ToInt32(Request.Query["id"]); //此id即为contact中的customer_id
         List <Purchase> purchases = PM.SelectBySupplierId(id);            //supplier_id即为company_info 中的id
         if (purchases.Count > 0)
         {
             return(Json("Existence"));
         }
         else
         {
             int count = UM.Del(id);
             CM.DelByCustomerID(id);
             if (count > 0)
             {
                 return(Json("Success"));
             }
             else
             {
                 return(Json("Fail"));
             }
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }