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

            return(await SaveAndReturnEntityAsync(async() => await _PriorityService.SaveAndReturnEntityAsync(Priority)));
        }