예제 #1
0
        public Company Update(Company companyChanges)
        {
            _context.Entry(companyChanges).State = EntityState.Modified;
            _context.SaveChanges();

            return(companyChanges);
        }
예제 #2
0
        public Contact Update(Contact contactChanges)
        {
            _context.Entry(contactChanges).State = EntityState.Modified;
            _context.SaveChanges();

            return(contactChanges);
        }