using System.Collections; using System.Collections.Generic; using System.Threading.Tasks; using API.Data; using API.DTOs; using API.Interfaces; using Microsoft.AspNetCore.Mvc; namespace API.Controllers { public class UsersController : BaseApiController { private readonly DataContext _context; private readonly IUserRepository _userRepository; public UsersController(DataContext context, IUserRepository userRepository) { _context = context; _userRepository = userRepository; } [HttpGet] public async Task>> GetUsers() { return Ok(await _userRepository.GetMembersAsync()); } } }