예제 #1
0
        public Product PutProduct(long id, Product product)
        {
            _context.Entry(product).State = EntityState.Modified;
            _context.SaveChanges();


            return(product);
        }
예제 #2
0
 public Staff updateItems(Staff staff)
 {
     _context.Entry(staff).State = EntityState.Modified;
     _context.SaveChanges();
     return(staff);
 }