Esempio n. 1
0
        public void ReplyFromMember(string body)
        {
            var supportReply = new SupportTicketReply();

            supportReply.Message   = body;
            supportReply.TicketId  = this.Id;
            supportReply.ReplyDate = AppSettings.ServerTime;
            supportReply.IsMember  = true;

            supportReply.Save();
        }
Esempio n. 2
0
        public void ReplyFromAdmin(string body, string adminName, bool sendEmail = false)
        {
            var supportReply = new SupportTicketReply();

            supportReply.Message   = body;
            supportReply.TicketId  = this.Id;
            supportReply.ReplyDate = AppSettings.ServerTime;
            supportReply.IsMember  = false;
            supportReply.AdminName = adminName;
            supportReply.Save();

            this.IsRead = false;
            this.Save();

            if (sendEmail)
            {
                sendEmailOnReply();
            }
        }