public IActionResult Put([FromRoute] string id, [FromBody] EditProductCategoryDto productCategory) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _context.Put(id, productCategory); return(NoContent()); }
public IActionResult Put([FromRoute] string id, [FromBody] EditProductCategoryDto productCategory) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _context.Put(id, productCategory); return(NoContent()); }