public ActionResult CreateCategory(CategoryDto category) { Category item = category.Adapt <Category>(); _categoryService.CreateCategory(item); _categoryService.SaveChanges(); return(StatusCode( 201, new { Id = category.Id })); }
public ActionResult CreateCategory(CategoryDto category) { Category item = category.Adapt <Category>(); _categoryService.CreateCategory(item); _categoryService.SaveChanges(); return(StatusCode( 201, new { Id = category.Id })); }