Esempio n. 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");
        }
Esempio n. 2
0
 public IActionResult AddColor(ProductColorDTO prdReq)
 {
     return(Ok(_prd.AddColor(prdReq)));
 }