public async Task <ServerResponse <ApiModel.Currency> > GetCurrency() { var result = new ServerResponse <ApiModel.Currency>(); try { var requestResult = await _productApi.GetCurrency(Settings.CurrentUser?.Name); result.Data = requestResult; result.Status = Enums.ResponseStatus.Ok; } catch (NoInternetConnectionException) { result.Status = Enums.ResponseStatus.NotConnected; result.Message = "No connection to the server"; } catch (Exception ex) { result.Status = Enums.ResponseStatus.Error; result.Message = ex.Message; } return(result); }