Пример #1
0
        public async Task<User> CreateUser(User newUser)
        {
            var userType = GetUserType("User").Result;

            if (userType != null)
                newUser.UserType = userType;

            var result = _context.Users.Add(newUser);
            
            await _context.SaveChangesAsync();

            return result;
        }
Пример #2
0
        public IQueryable<Sprint> GetSprintsForUser(User thisUser)
        {
            var result =  _context.Sprints.AsQueryable();

            return result;
        }