Exemple #1
0
        public ActionResult PostPatientReply(InboxMessageModel model)
        {
            bool isread = false;

            using (ProjectEntities db = new ProjectEntities())
            {
                if (model.MessageDetail != null)
                {
                    // Insert Reply
                    db.InsertMessage(model.ToEmailId, model.FromEmailId, model.Subject, model.MessageDetail,
                                     DateTime.Now, model.MessageId, isread);

                    // update IsRead
                    db.UpdateIsRead(model.MessageId, true);

                    return(Json("Reply Sent"));
                }
                else
                {
                    return(Json("Reply Message Body is Empty"));
                }
            }
        }