Beispiel #1
0
        public async Task <IActionResult> CreateLead(
            [FromRoute] Guid organizationId,
            [FromBody] LeadInput model)
        {
            var result = await _leadService.CreateInternalLead(_marketer, model);

            return(Ok(result));
        }
Beispiel #2
0
        public async Task <IActionResult> CreateLead([FromRoute] Guid organizationId, [FromQuery] string referralCode, [FromBody] LeadInput input)
        {
            var marketer =
                await _marketerService.GetMarketerOrDefault <OrganizationMarketerOutput>(organizationId, null,
                                                                                         referralCode);

            var lead = await _leadService.CreateInternalLead(marketer, input);

            return(Ok(lead));
        }