Example #1
0
        public HttpResponseMessage Get(string id)
        {
            if (id.ToLower() == "start")
            {
                settings.SendMailAsync(_customerLayer.GetAllCustomer(), _templateLayer.GetEmailTemplate());
            }
            else if (id.ToLower() == "stop")
            {
                settings.CancelMailAsync();
            }

            return(Request.CreateResponse(HttpStatusCode.OK));
        }
Example #2
0
 public HttpResponseMessage Get()
 {
     return(Request.CreateResponse(HttpStatusCode.OK, _templateLayer.GetEmailTemplate()));
 }