public async Task <ActionResult> AllCustomers() { try { return(Ok(await _repository.GetCustomerProfiles())); } catch (Exception) { return(StatusCode(StatusCodes.Status500InternalServerError, "Error retrieving data from the database")); } }