Esempio n. 1
0
        public IActionResult DeleteItem([FromBody] Dictionary <string, object> formData)
        {
            string Masp = "";

            if (formData.Keys.Contains("Masp") && !string.IsNullOrEmpty(Convert.ToString(formData["Masp"])))
            {
                Masp = Convert.ToString(formData["Masp"]);
            }
            _itemBusiness.Delete(Masp);
            return(Ok());
        }
Esempio n. 2
0
        public IActionResult Delete([FromBody] Dictionary <string, object> formData)
        {
            string id = "";

            if (formData.Keys.Contains("id") && !string.IsNullOrEmpty(Convert.ToString(formData["id"])))
            {
                id = Convert.ToString(formData["id"]);
            }
            sanpham.Delete(id);
            return(Ok());
        }
Esempio n. 3
0
        public IActionResult DeleteSanPham([FromBody] Dictionary <string, object> formData)
        {
            string item_id = "";

            if (formData.Keys.Contains("item_id") && !string.IsNullOrEmpty(Convert.ToString(formData["item_id"])))
            {
                item_id = Convert.ToString(formData["item_id"]);
            }
            _itemBusiness.Delete(item_id);
            return(Ok());
        }