示例#1
0
        public async Task <IActionResult> SubmitTask([FromBody] ReviewTaskDTO taskDto)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var result = await _taskLogic.SubmitTask(taskDto);

            if (!result)
            {
                return(BadRequest(ModelState));
            }

            return(Ok(result));
        }