public async Task <DataModels.Models.Lead> AddLead([FromBody] DataModels.Models.Lead lead) { _context.Add(lead); await _context.SaveChangesAsync(); return(lead); }
public async Task AddLeadFromMessaging([FromBody] DataModels.Models.Lead lead) { await _messageSession.Send(new AddLead { Name = lead.Name, ZipCode = lead.ZipCode }); }