Exemple #1
0
        public IActionResult Delete([FromBody] Dictionary <string, object> formData)
        {
            string ma_hoa_don = "";

            if (formData.Keys.Contains("ma_hoa_don") && !string.IsNullOrEmpty(Convert.ToString(formData["ma_hoa_don"])))
            {
                ma_hoa_don = Convert.ToString(formData["ma_hoa_don"]);
            }
            _hoaDonBusiness.Delete(ma_hoa_don);
            return(Ok());
        }
 public bool Delet(string id)
 {
     return(_hoaDonBusiness.Delete(id));
 }