示例#1
0
        public async Task <IActionResult> Post([FromBody] TaskStatusDto taskStatus)
        {
            if (taskStatus.Id != 0)
            {
                return(StatusCode(StatusCodes.Status400BadRequest, "Identity insert is not permitted."));
            }

            return(await SaveAndReturnEntityAsync(async() => await _taskStatusService.SaveAndReturnEntityAsync(taskStatus)));
        }