public string AddColor(ProductColorDTO productColorDTO) { ProductColor col = new ProductColor(); col.ProductColorValue = productColorDTO.ColorValue; _context.productColor.Add(col); _context.SaveChanges(); return("Color Added Succesfully"); }
public IActionResult AddColor(ProductColorDTO prdReq) { return(Ok(_prd.AddColor(prdReq))); }