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


            return(product);
        }
예제 #2
0
 public Staff createStaff(Staff staff)
 {
     _context.Staff.Add(staff);
     _context.SaveChanges();
     return(staff);
 }