Exemplo n.º 1
0
        public async Task <IActionResult> GenerateShipments()
        {
            var result = await _shipmentService.GenerateShipmentsAsync();

            return(result.Success
                ? StatusCode(StatusCodes.Status200OK, result)
                : StatusCode(StatusCodes.Status400BadRequest, result));
        }