Пример #1
0
        public async Task <IActionResult> LogicDeletedWorkFlowInstance([FromBody] IdQuery query)
        {
            var success = await _service.SetWorkFlowInstanceDelete(query.Id, true);

            if (!success)
            {
                ModelState.AddModelError("IsDelete", ErrorMessages.WorkFlow_Instance_E001);
                return(BadRequest(ModelState));
            }
            return(Ok());
        }