public async Task <IActionResult> CreateCategory([FromBody] CreateOrUpdateTutorialCategoryRequest request) { var createdCategory = await _tutorialService.CreateTutorialCategoryAsync(request); if (createdCategory != null) { return(Created(ApiHelper.GetResourceUri(HttpContext.Request, ApiRoutes.Tutorial.Category.GetAll), _mapper.Map <TutorialCategoryResponse>(createdCategory))); } return(BadRequest()); }