Esempio n. 1
0
        public async Task <Season> InsertAsync(Season season)
        {
            _database.Seasons.Add(season);

            await _database.SaveChangesAsync();

            return(season);
        }
Esempio n. 2
0
        public async Task <User> InsertAsync(User user)
        {
            _database.Users.Add(user);

            await _database.SaveChangesAsync();

            return(user);
        }
 public async Task <int> SaveChanges()
 {
     return(await _database.SaveChangesAsync());
 }