Beispiel #1
0
        public HttpResponseMessage Send(Mail mail)
        {
            var result = MailSender.GetInstance().SendMail(mail);

            if (result.Status == Status.Error)
            {
                return(Request.CreateResponse(HttpStatusCode.InternalServerError, new { Message = result.Message }));
            }

            return(Request.CreateResponse(HttpStatusCode.OK, new { Message = result.Message }));
        }