Beispiel #1
0
        public async Task <User> AddAsync(User user)
        {
            var newUser = _context.Users.Add(user).Entity;

            await _context.SaveChangesAsync();

            return(newUser);
        }
Beispiel #2
0
        public async Task <Hosting> AddAsync(Hosting hosting)
        {
            var newHosting = _context.Hostings.Add(hosting).Entity;

            await _context.SaveChangesAsync();

            return(newHosting);
        }