Exemplo n.º 1
0
        public async Task <ActionResult> CreateAsync([FromBody] CategoryCreateDto categoryCreateDto)
        {
            _logger.LogMethodCallingWithObject(categoryCreateDto);

            await _categoryManager.AddCategoryAsync(categoryCreateDto);

            return(Ok());
        }
Exemplo n.º 2
0
        public async Task <ActionResult> Post([FromBody] CategoryCreateDto categoryCreateDto)
        {
            await _categoryManager.AddCategoryAsync(categoryCreateDto);

            return(Ok());
        }
Exemplo n.º 3
0
 public async Task <IActionResult> AddCategoryAsync([FromBody] NewCategoryDto category)
 {
     return(ApiResult(await _categoryManager.AddCategoryAsync(category)));
 }