Beispiel #1
0
        public ActionResult DiscussProject([Bind(Exclude = "Id")] Lead lead)
        {
            if (ModelState.IsValid)
            {
                _leadService.Create(lead);
                //var result = MandrillSendExtension.customSend(lead, MandrillTemplates.Lead);
                Send(lead);
                return(RedirectToAction("LeadConfirmed"));
            }

            return(View(lead));
        }
Beispiel #2
0
        public Lead Post([FromBody] Lead lead)
        {
            var l = _leadService.Create(lead);

            return(l);
        }
Beispiel #3
0
        public async Task <IActionResult> Create(LeadModel leadModel)
        {
            var leadId = await _leadService.Create(leadModel);

            return(Ok(leadId));
        }
Beispiel #4
0
 public async Task <ActionResult <Response> > Create(LeadCreateModel model)
 {
     return(await _leadService.Create(model, User));
 }