예제 #1
0
        public void Update(int id, Product_CategoryUpdateDto model)
        {
            var entry = _context.Product_Categories.Single(x => x.Product_CategoryId == id);

            entry.Product_CategoryName        = model.Product_CategoryName;
            entry.Product_CategoryDescription = model.Product_CategoryDescription;

            _context.SaveChanges();
        }
 public ActionResult Update(int id, Product_CategoryUpdateDto model)
 {
     _Product_CategoryService.Update(id, model);
     return(NoContent());
 }