public async Task <IActionResult> CreateShipment(FormShipmentModel model) { var userIdentity = GetCurrentIdentity <long>(); model.CoordinatorId = userIdentity.Id; var shipmentId = await _Shipmentservice.CreateShipmentAsync(model); await _shipmentRequestService.CreateShipmentRequestAsync(model.RequestIdList, shipmentId); return(Ok()); }
public async Task <ApiResponse> CreateShipmentAsync([FromBody] ShipmentBusinessModel shipment) { var result = await _shipmentService.CreateShipmentAsync(shipment); return(result); }