void RunChat(IChat channel, string chatNickname) { Console.WriteLine("\nPress [Enter] to exit\n"); channel.Hello(chatNickname); string input = Console.ReadLine(); while (input != string.Empty) { channel.Chat(chatNickname, input); input = Console.ReadLine(); } channel.Bye(chatNickname); }
public ActionResult Message(string Id) { return(PartialView("_MessagePartialViewView", _chat.Chat(Id))); }