2021-07-22 23:45:32 +00:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace BinaryDad.Coding.Controllers
|
|
|
|
|
{
|
|
|
|
|
public class HomeController : Controller
|
|
|
|
|
{
|
|
|
|
|
public IActionResult Index()
|
|
|
|
|
{
|
2021-07-22 23:48:43 +00:00
|
|
|
|
return View();
|
2021-07-22 23:45:32 +00:00
|
|
|
|
}
|
2021-07-23 00:41:12 +00:00
|
|
|
|
|
|
|
|
|
public bool IsBadWord(string word)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Route("view/{connectionId}")]
|
|
|
|
|
public IActionResult ViewHtml(string connectionId)
|
|
|
|
|
{
|
|
|
|
|
var user = Users.Sessions[connectionId];
|
|
|
|
|
|
|
|
|
|
return View(user);
|
|
|
|
|
}
|
2021-07-22 23:45:32 +00:00
|
|
|
|
}
|
|
|
|
|
}
|