public async Task <IActionResult> DeleteProduct(int id_product) { try { if (_storageStore.DeleteProduct(id_product)) { return(Ok(Json(new { message = "Produto excluído com sucesso!" }))); } else { return(BadRequest(Json(new { message = "Não foi possível excluir" }))); } }catch (Exception ex) { return(BadRequest(Json(new { message = ex.Message }))); } }