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