Ejemplo n.º 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("Тест"));
        }
Ejemplo n.º 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));
        }