// GET: Chats/Create public IActionResult Create() { ViewData["OperatorId"] = new SelectList(_context.Set <Operator>(), "Id", "Id"); ViewData["UserId"] = new SelectList(_context.User, "Id", "Mail"); return(View()); }