예제 #1
0
        public async Task <IActionResult> Send()
        {
            var testData = new Notification()
            {
                Bank = "Тинькофф", Id = 1, CardNumber = "5569852147812632510", DateRequest = DateTime.Now, Sum = 200, IdChats = new List <string> {
                    "368563281"
                }
            };
            await _sendService.Send(testData);

            return(Ok("Тест"));
        }
예제 #2
0
        public async Task <IActionResult> Post([FromBody] Services.Models.SendRequest request)
        {
            var response = await _emailService.Send(request);

            return(Created("api/email/" + response.EmailLogId, response));
        }