public ActionResult <List <ClientsModel> > Get() { try { List <ClientsModel> clientsModel = _clientService.GetClientDetails(); return(Ok(clientsModel)); } catch (ArgumentNullException ane) { return(BadRequest(ane.Message)); } catch (Exception ex) { _logger?.LogCritical("There was an error on '{0}' invocation: {1}", nameof(Get), ex); return(new StatusCodeResult((int)HttpStatusCode.InternalServerError)); } }