Example #1
0
        public async Task <IActionResult> ChangeOrder([FromBody] ChangeOrderModel model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState.GetFirstError()));
            }

            await _subTaskService.ChangeOrder(model.CompanyId, model.CurrentId, model.ToSwapId);

            return(Ok());
        }