public IActionResult Find([FromServices] ChatRoomDbContext ctx) { var users = ctx.Users .Where(x => x.Id != User.GetUserId()) .ToList(); return(View(users)); }
public ChatRepository(ChatRoomDbContext ctx) => _ctx = ctx;
public RoomViewComponent(ChatRoomDbContext ctx) => _ctx = ctx;
public ChatRepository(ChatRoomDbContext context) { _context = context; }
public HomeController(IChatRepository repo, ChatRoomDbContext ctx) { _repo = repo; _ctx = ctx; }