Exemple #1
0
        public async Task <Test> AddTestAsync(Test test)
        {
            try
            {
                await _context.Tests.AddAsync(test);

                await _context.SaveChangesAsync();

                return(test);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }