public JsonResult SendChatMessage(ChatMessage model)
        {
            model.TaskAssignId = taskAssignId;

            if (chatMessageManager.SaveOrUpdate(model))
            {
                var msg      = model.ChatMessageText;
                var taskId   = model.TaskAssignId;
                var dateTime = model.Created;
                return(Json(new { message = msg, tId = taskId, status = true }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(new { status = false }, JsonRequestBehavior.AllowGet));
            }
        }