public Adult AddAdult(Adult adult) { ctx.Adults.Add(adult); ctx.Entry(adult).State = EntityState.Added; ctx.SaveChanges(); return(adult); }
public void AddUser(SharedClasses.Models.User user) { Console.WriteLine("yes yes"); familyManagerContext.User.Add(user); //????????? familyManagerContext.Entry(user).State = EntityState.Added; familyManagerContext.SaveChanges(); }