public async Task <ProductEntity> GetProduct(long recordId) { EnsureInternetAvailable(); await EnsureSessionIsValid(); try { var accessToken = await GetAccessToken(); var contract = await _productWebService.Get(recordId, accessToken); return(Mapper.Map <ProductEntity>(contract)); } catch (ApiException ex) { throw new ServerErrorException(ex.Message); } }