Beispiel #1
0
        public async Task <ActionResult> PostCategory(CategoryRequest category)
        {
            var addedCategory = await _categoryServices.AddCategoryAsync(category);

            return(CreatedAtAction("Category-{name}-{id}", new { name = addedCategory.AddedEntity.Name, id = addedCategory.AddedEntity.CatID }, addedCategory.AddedEntity));
        }