public BaseCommand Create(EntityListViewModel <PublicUserViewModel, GetPublicUserModel> userListVm, LoadEntityListEnum loadEntityType) { return(loadEntityType switch { LoadEntityListEnum.LoadAll => new LoadUsersCommand(userListVm, _userApiClient, _publicUserViewModelFactory), _ => new LoadUsersByIdsCommand(userListVm, _userApiClient, _publicUserViewModelFactory), });
public CommentListViewModel Create(LoadEntityListEnum loadEntityType) => new CommentListViewModel(createLoadCommand: commentListVm => _loadCommentsCommandFactory.Create(commentListVm, loadEntityType));
public BaseCommand Create(EntityListViewModel <ArticleViewModel, GetArticleModel> articleListVm, LoadEntityListEnum loadEntityType) { return(loadEntityType switch { LoadEntityListEnum.LoadAll => new LoadArticlesCommand(articleListVm, _articleApiClient, _articleViewModelFactory), _ => new LoadArticlesByIdsCommand(articleListVm, _articleApiClient, _articleViewModelFactory), });
public ArticleListViewModel Create(LoadEntityListEnum loadEntityType) => new ArticleListViewModel(createLoadCommand: entityListVm => _loadArticlesCommandFactory.Create(entityListVm, loadEntityType));
public BaseCommand Create(EntityListViewModel <BoardViewModel, GetBoardModel> boardListVm, LoadEntityListEnum loadEntityType) { return(loadEntityType switch { LoadEntityListEnum.LoadAll => new LoadBoardsCommand(boardListVm, _boardApiClient, _boardViewModelFactory), _ => new LoadBoardsByIdsCommand(boardListVm, _boardApiClient, _boardViewModelFactory), });
public UserListViewModel Create(LoadEntityListEnum loadEntityType) => new UserListViewModel(createLoadCommand: entityVm => _loadUserCommandFactory.Create(entityVm, loadEntityType));
public BoardListViewModel Create(LoadEntityListEnum loadEntityType) => new BoardListViewModel(createLoadCommand: entityVm => _loadBoardsCommandFactory.Create(entityVm, loadEntityType));
public BaseCommand Create(EntityListViewModel <CommentViewModel, GetCommentModel> commentListVm, LoadEntityListEnum loadEntityType) => loadEntityType switch {