Beispiel #1
0
        //private readonly MsgStringCreator _msgString = new MsgStringCreator();

        public void OnSendtoEmployee(object source, EmailSmsEventArgs e)
        {
            Email(e.CarUserBlocker.EMAIL, MsgStringCreator.MsgToCarBlocker(e.CarUserBlocked), "MoveCar App - Please Move Your Car Immediately !", e.CarUserBlocker.Manager_EMAIL);
            Email(e.CarUserBlocked.EMAIL, MsgStringCreator.MsgToCarBlocked(e.CarUserBlocker), "MoveCar App - Here's Your Car Blocker Details");

            Sms(e.CarUserBlocker, MsgStringCreator.MsgToCarBlocker(e.CarUserBlocked));
            Sms(e.CarUserBlocked, MsgStringCreator.MsgToCarBlocked(e.CarUserBlocker));
        }
Beispiel #2
0
        public void OnSendtoEmployeeNoBlocker(object source, EmailSmsNoBlockerEventArgs e)
        {
            string plateNumberWithSpaces = AddSpacesinPlateText(e.Req.PLATE_NUMBER);

            Email(e.CarUserBlocked?.EMAIL, MsgStringCreator.MsgToCarBlocked(), "Move Car App - Your Blocker Car Plate Number was not found");

            ////Send Email to all EMC Empolyees
            //Email("*****@*****.**", $"Dear All, Owner of {plateNumberWithSpaces} <br />  Kindly move your car immediately as it blocks others to leave the office.", $"ATTENTION! Move Car App - {plateNumberWithSpaces} Please Move Your Car", "*****@*****.**"); // All COE

            Sms(e.CarUserBlocked, MsgStringCreator.MsgToCarBlocked());
        }
Beispiel #3
0
 public void OnSendtoEmployeeNoBlocked(object source, EmailSmsNoBlockedEventArgs e)
 {
     Email(e.CarUserBlocker?.EMAIL, MsgStringCreator.MsgToCarBlocker(), "MoveCar App - Please Move Your Car", e.CarUserBlocker.Manager_EMAIL);
     Sms(e.CarUserBlocker, MsgStringCreator.MsgToCarBlocker());
 }