public Group Add(Group group) { userManagementContext.Groups.Add(group); userManagementContext.SaveChanges(); return(group); }
//Takes a group object and adds it to the database public List <Group> addGroup(Group group) { _dc.Group.Add(group); _dc.SaveChanges(); return(_dc.Group.ToList()); }
public void SignUpNewsletter(string email) { _userManagementContext.NewsletterSubsriptions.Add(new NewsletterSubscription(email)); _userManagementContext.SaveChanges(); }