コード例 #1
0
        public async Task <DataModels.Models.Lead> AddLead([FromBody] DataModels.Models.Lead lead)
        {
            _context.Add(lead);

            await _context.SaveChangesAsync();

            return(lead);
        }
コード例 #2
0
 public async Task AddLeadFromMessaging([FromBody] DataModels.Models.Lead lead)
 {
     await _messageSession.Send(new AddLead { Name = lead.Name, ZipCode = lead.ZipCode });
 }