public IActionResult Delete(ProductUnit productUnit) { var result = _productUnitService.Delete(productUnit); if (result.Success) { return(Ok(result.Message)); } return(BadRequest(result.Message)); }
public async Task <ActionResult <bool> > Delete(int id) { return(Ok(await _productUnitService.Delete(await GetUserId(), id, GetPermissionId()))); }