Example #1
0
        public void SendPush(long docID, long patID, bool sendtoPatient, bool sendtoDoctor, string message)
        {
            try
            {
                //,long patID,bool sendtoPatient, bool sendtoDoctor

                //SendPush
                pushModel pm = new pushModel();
                pm.PPushTitle    = "Consultation Request";
                pm.PPushMessage  = "";
                pm.DPushTitle    = "Consultation Request";
                pm.DPushMessage  = message;
                pm.PPushMessage  = message;
                pm.sendtoDoctor  = sendtoDoctor;
                pm.sendtoPatient = sendtoPatient;
                pm.doctorID      = docID;
                pm.patientID     = patID;

                PushHelper ph = new PushHelper();
                ph.sendPush(pm);
            }
            catch (Exception ex)
            {
                //ThrowError(ex, "Err in SendPush in Appointment Controller line # 169");
            }
        }