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()); }
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()); }
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()); }