public async Task <IActionResult> Delete(int id) { var customer = await _customerService.GetById(id); if (customer == null) { return(NotFound()); } await _customerService.Delete(customer); return(new NoContentResult()); }
public async Task <IActionResult> Delete(int id) { var company = await _companyService.GetById(id); if (company == null) { return(NotFound()); } await _companyService.Delete(company); return(new NoContentResult()); }
public async Task <IActionResult> Delete(int id) { var product = await _productService.GetById(id); if (product == null) { return(NotFound()); } await _productService.Delete(product); return(new NoContentResult()); }
public async Task <IActionResult> Delete(int id) { var stock = await _stockService.GetById(id); if (stock == null) { return(NotFound()); } await _stockService.Delete(stock); return(new NoContentResult()); }