PhotoSharingApp.AppService.Controllers.CategoryController.GetAsync C# (CSharp) Method

GetAsync() private method

private GetAsync ( ) : Task>
return Task>
        public async Task<IList<CategoryContract>> GetAsync()
        {
            try
            {
                _telemetryClient.TrackEvent("CategoryController GetAsync invoked");

                var categories = await _repository.GetCategories();

                return categories;
            }
            catch (DataLayerException ex)
            {
                _telemetryClient.TrackException(ex);

                if (ex.Error == DataLayerError.Unknown)
                {
                    throw ServiceExceptions.UnknownInternalFailureException(ServiceExceptions.Source);
                }

                throw ServiceExceptions.DataLayerException(ex.Message);
            }
        }

Same methods

CategoryController::GetAsync ( [ numberOfThumbnails ) : Task>
CategoryController::GetAsync ( string id, [ continuationToken ) : Task>