public async Task <IActionResult> GetLeadsByVendor([FromQuery] LeadsByVendorParameters leadsByVendorParameters) { var result = await leadService.GetLeadsByVendor(leadsByVendorParameters); return(StatusCode((int)result.Code, result.Value)); }