예제 #1
0
        public async Task <Combine_athlete_metrics> AddAsync(Combine_athlete_metrics item)
        {
            context.Combine_athlete_metrics.Add(item);
            await context.SaveChangesAsync();

            return(item);
        }
예제 #2
0
        public async Task UpdateAsync(Combine_athlete_metrics item)
        {
            if (item == null)
            {
                throw new ArgumentNullException(nameof(item));
            }

            context.Combine_athlete_metrics.Update(item);
            await context.SaveChangesAsync();
        }