Beispiel #1
0
        public async Task ExtendJobOrderAsync(ExtendJobOrderModel model)
        {
            var command = new ExtendJobOrderCommand(
                model.UserId,
                model.JobOrderId,
                model.NewDueDate,
                model.Price
                );

            await Bus.Send(command);
        }
Beispiel #2
0
        public async Task <IActionResult> Extend([FromBody] ExtendJobOrderModel model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            await WorkerServices.ExtendJobOrderAsync(model);

            return(Ok());
        }