public IActionResult Post([FromBody] CreateProductCategoryDto productCategory) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } return(Ok(_context.Post(productCategory))); }
public IActionResult Post([FromBody] CreateProductCategoryDto productCategory) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } return(Ok(_context.Post(productCategory))); }