public async Task <IActionResult> Post(CreateCultureRequest request)
        {
            var cultureDto = _mapper.Map <CultureDto>(request);
            await _cultureService.CreateAsync(cultureDto);

            return(Ok());
        }
示例#2
0
 public Task<CultureDto> CreateAsync([FromBody] CultureDto createCulture)
 {
     return _cultureService.CreateAsync(createCulture);
 }