예제 #1
0
        public string AddColor(ProductColorDTO productColorDTO)
        {
            ProductColor col = new ProductColor();

            col.ProductColorValue = productColorDTO.ColorValue;

            _context.productColor.Add(col);
            _context.SaveChanges();

            return("Color Added Succesfully");
        }
예제 #2
0
 public IActionResult AddColor(ProductColorDTO prdReq)
 {
     return(Ok(_prd.AddColor(prdReq)));
 }