Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
public async Task <IActionResult> BulkLoadLeads([FromBody] List <LeadRequest> request) { try { var response = await _leadService.BulkLoadLeads(request.Select(l => l.ToLead()).ToList()); if (response.Ok) { return(Ok()); } else { return(BadRequest(new ErrorPayload(1, "An error occurred!"))); } } catch (Exception e) { return(BadRequest(new ErrorPayload(1, e.Message))); } }