public User CreateUser(User user) { User foundUser = context.User.Where(usr => usr.Email == user.Email).FirstOrDefault(); if (foundUser != null) { return(null); } context.Add(user); context.SaveChanges(); return(user); }
public Game Create(Game game) { context.Add(game); context.SaveChanges(); return(game); }
public PlayerGame Create(PlayerGame playergame) { context.Add(playergame); context.SaveChanges(); return(playergame); }
public Quiz CreateQuiz(Quiz quiz) { context.Add(quiz); context.SaveChanges(); return(quiz); }