public IActionResult Delete(ProductUnit productUnit)
        {
            var result = _productUnitService.Delete(productUnit);

            if (result.Success)
            {
                return(Ok(result.Message));
            }

            return(BadRequest(result.Message));
        }
예제 #2
0
 public async Task <ActionResult <bool> > Delete(int id)
 {
     return(Ok(await _productUnitService.Delete(await GetUserId(),
                                                id,
                                                GetPermissionId())));
 }