예제 #1
0
        public void Edit(EmausMembers project)
        {
            var item = Database.EmausMembers.SingleOrDefault(x => x.Id == project.Id);

            if (item == null)
            {
                return;
            }

            item.Assign(project);

            Database.SaveChanges();
        }
예제 #2
0
 public void Add(EmausMembers item)
 {
     Database.EmausMembers.Add(item);
     Database.SaveChanges();
 }