public async Task <IActionResult> Post([FromBody] GenderDto gender) { if (gender.Id != 0) { return(StatusCode(StatusCodes.Status400BadRequest, "Identity insert is not permitted.")); } return(await SaveAndReturnEntityAsync(async() => await _genderService.SaveAndReturnEntityAsync(gender))); }