Beispiel #1
0
        public IActionResult PostProductColor(ProductColorVM ProdColor)
        {
            _unitOfWork.ProdColorRep.Insert(ProdColor);


            return(CreatedAtAction("GetpProductColor", new { id = ProdColor.ID }, ProdColor));
        }
        public void Insert(ProductColorVM pcvm)
        {
            pProductColor pc = new pProductColor();

            pc.ID        = pcvm.ID;
            pc.ProductID = pcvm.ProductID;
            pc.ColorID   = pcvm.ColorID;
            db.pProductColor.Add(pc);
            db.SaveChanges();
        }
 public void Update(ProductColorVM pcvm, int id)
 {
     throw new NotImplementedException();
 }