コード例 #1
0
        public ActionResult SendMsg(string SenderID, string RecieverID, string Msg)
        {
            objResponse Response = new objResponse();

            session = new SessionHelper();
            try
            {
                Response = objChatManager.AddUserchat(SenderID, RecieverID, Msg, session.UserSession.PIN, session.UserSession.UserId);
                if (Response.ErrorCode == 0)
                {
                    return(Json("Success", JsonRequestBehavior.AllowGet));
                }
                else
                {
                    return(Json("Fail", JsonRequestBehavior.AllowGet));
                }
            }
            catch (Exception ex)
            {
                BAL.Common.LogManager.LogError("SendMsg Post Method", 1, Convert.ToString(ex.Source), Convert.ToString(ex.Message), Convert.ToString(ex.StackTrace));
                return(Json("Fail", JsonRequestBehavior.AllowGet));
            }
        }