public ActionResult Index(int id)
        {
            var messangerGroupModel = new MessangerGroupModel();

            //string compositeChatId = string.Compare(User.Identity.GetUserId(), id) > 0 ? User.Identity.GetUserId() + id : id + User.Identity.GetUserId();

            //ViewData[GlobalConstants.CompsiteChatId] = compositeChatId;
            //ViewData[GlobalConstants.CounterPartFullName] = this.userService.GetUserFullName(id);

            messangerGroupModel.Messages = this.messangerGroupService.AllByUserIds(User.Identity.GetUserId(), id);

            return(View(messangerGroupModel));
        }
 public ActionResult Index(int id, int?pageIndex, MessangerGroupModel model)
 {
     this.messangerGroupService.Create(User.Identity.GetUserId(), id, model.MessageText);
     return(RedirectToAction(nameof(Index), new { id, pageIndex }));
 }