public async Task <ActionResult> CreateAsync([FromBody] CategoryCreateDto categoryCreateDto) { _logger.LogMethodCallingWithObject(categoryCreateDto); await _categoryManager.AddCategoryAsync(categoryCreateDto); return(Ok()); }
public async Task <ActionResult> Post([FromBody] CategoryCreateDto categoryCreateDto) { await _categoryManager.AddCategoryAsync(categoryCreateDto); return(Ok()); }
public async Task <IActionResult> AddCategoryAsync([FromBody] NewCategoryDto category) { return(ApiResult(await _categoryManager.AddCategoryAsync(category))); }