public ActionResult <IEnumerable <DonHang> > GetXuat()
 {
     try
     {
         DonHang_DTO mysqlGet = new DonHang_DTO();
         return(mysqlGet.getDonHang("Xuất"));
     }
     catch (Exception)
     {
         throw;
     }
 }
 public ActionResult <DonHang> Get(int id)
 {
     try
     {
         DonHang_DTO mysqlGet = new DonHang_DTO();
         return(mysqlGet.getDonHang(id));
     }
     catch (Exception)
     {
         throw;
     }
 }
        public string Put(DonHang hh)
        {
            try
            {
                DonHang_DTO mysqlGet = new DonHang_DTO();
                return(mysqlGet.editDonHang(hh) == 0 ? "Không thành công" : "Thành công");
            }
            catch (Exception ex)
            {
                return(ex.Message);

                throw;
            }
        }
        public string Delete(int id)
        {
            try
            {
                DonHang_DTO mysqlGet = new DonHang_DTO();
                return(mysqlGet.delDonHang(id) == 0 ? "Không thành công" : "Thành công");
            }
            catch (Exception ex)
            {
                return(ex.Message);

                throw;
            }
        }