public IActionResult Add(ProductStatus productStatus)
        {
            var result = _productStatus.Add(productStatus);

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

            return(BadRequest(result));
        }
Exemplo n.º 2
0
 public async Task <ActionResult <bool> > Add(InsertProductStatusModel request)
 {
     return(Ok(await _productStatusService.Add(await GetUserId(),
                                               request,
                                               GetPermissionId())));
 }