public ActionResult Chat(int draftId, string message, int chatTempId)
        {
            var member = GetAuthorizedMember();

            using (var sl = new SystemLogic())
            {
                if (!sl.IsMemberOfDraft(member.Id, draftId))
                {
                    if (Request.IsAjaxRequest())
                    {
                        return(Json(new { success = false }));
                    }
                    return(RedirectToAction("Index"));
                }

                var chat = sl.AddChat(message, draftId, member.Id);

                if (Request.IsAjaxRequest())
                {
                    return(Json(new { success = true, chatId = chat.Id, oldChatId = chatTempId }));
                }
                return(RedirectToAction("Details", new { id = draftId }));
            }
        }