public IActionResult Delete(int id) { if (iproduct.GetDetailbyId(id) == null) { return(BadRequest()); } if (iproduct.DeleteDetail(id)) { return(Ok()); } return(BadRequest()); }
public IActionResult Delete(int id) { if (iproduct.GetDetailbyId(id) == null) { return(BadRequest()); } if (iproduct.DeleteDetail(id)) { return(Ok()); } return(BadRequest()); }