Coding/BinaryDad.Coding/Controllers/HomeController.cs

30 lines
611 B
C#

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()
{
return View();
}
public bool IsBadWord(string word)
{
return false;
}
[Route("view/{connectionId}")]
public IActionResult ViewHtml(string connectionId)
{
var user = Users.Sessions[connectionId];
return View(user);
}
}
}