public async Task <ActionResult <Customer> > GetCustomers() { try { return(Ok(await _customerRepo.FindAll())); } catch (Exception) { return(StatusCode(StatusCodes.Status500InternalServerError, "Error retrieving data from the DB !")); throw; } }