addRecipient() public method

public addRecipient ( string to ) : void
to string
return void
Esempio n. 1
0
        public bool sendMovesRequest(RequestForm req, string sendTo)
        {
            bool isSent = false;

            if (req == null)
            {
                throw new ArgumentNullException("req");
            }

            if (sendTo == null)
            {
                throw new ArgumentNullException("sendTo");
            }

            if (sendTo == "HR")
            {
                _template.addRecipient(HRAddress);
                isSent = sendMovesRequest(req);
            }
            else if (sendTo == "SD")
            {
                _template.addRecipient(SDAddress);
                isSent = sendMovesRequest(req);
            }

            return(isSent);
        }