//[Authorize(Roles = "Admin")] public async Task <IActionResult> Create([FromForm] CategoryCreationModel model) { var create = await _categoryService.CreateCategoryAsync(model); var locationUri = _uriService.GetCategoryUri(create.Payload.Id.ToString()); return(Created(locationUri, _mapper.Map <CategoryDetailsModel>(create.Payload))); }