public async Task <ActionResult <List <CustomerViewModel> > > GetCustomersAsync() { try { var customers = await _logic.GetAllAsync(); if (customers == null) { return(NotFound()); } return(customers); } catch (Exception e) { return(StatusCode(500, e)); } }