Beispiel #1
0
        public async Task <IActionResult> DeleteLead([FromRoute] Guid organizationId, [FromRoute] Guid leadId)
        {
            var ao     = _agencyOwner.Value;
            var result = await _leadService.DeleteLead(ao, leadId);

            return(Ok(result));
        }
Beispiel #2
0
        public async Task <IActionResult> DeleteLead([FromRoute] Guid organizationId, [FromRoute] Guid leadId)
        {
            var result = await _leadService.DeleteLead(_accountManager, leadId);

            return(Ok(result));
        }
Beispiel #3
0
 public void Delete(int leadId)
 {
     _leadService.DeleteLead(leadId);
 }
        public async Task <IActionResult> DeleteLead(int leadId)
        {
            var result = await leadService.DeleteLead(leadId);

            return(StatusCode((int)result.Code, result.Value));
        }