public void Edit(EmausMembers project) { var item = Database.EmausMembers.SingleOrDefault(x => x.Id == project.Id); if (item == null) { return; } item.Assign(project); Database.SaveChanges(); }
public void Add(EmausMembers item) { Database.EmausMembers.Add(item); Database.SaveChanges(); }