public ActionResult Index(ClientModel model)
 {
     if (_names.Contains(model.Name))
     {
         ViewBag.DuplicateUser = Resources.DuplicateUser;
     }
     else if (ModelState.IsValid)
     {
         _names.Add(model.Name);
         return View("ChatRoom", model);
     }
     return View();
 }
 /// <summary>
 /// Displays chatroom
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public ActionResult ChatRoom(ClientModel model)
 {
     return View(model);
 }