Ejemplo n.º 1
0
        public async Task ShowStats()
        {
            this._view.StatusLabelText = "Loading...";

            StringBuilder builder = new StringBuilder();

            builder.AppendLine("Books: " + (await _bookService.GetAll()).Count());
            builder.AppendLine("Publishers: " + (await _publisherService.GetAll()).Count());
            builder.AppendLine("Authors: " + (await _authorService.GetAll()).Count());
            builder.AppendLine("");
            builder.AppendLine("Media Items: " + (await _mediaItemService.GetAll()).Count());
            builder.AppendLine("");
            builder.AppendLine("Tags: " + (await _tagService.GetAll()).Count());

            this._view.StatsBoxTest    = builder.ToString();
            this._view.StatusLabelText = "Ready";
        }