public BaseCommand Create(EntityListViewModel <PublicUserViewModel, GetPublicUserModel> userListVm, LoadEntityListEnum loadEntityType)
 {
     return(loadEntityType switch
     {
         LoadEntityListEnum.LoadAll => new LoadUsersCommand(userListVm, _userApiClient, _publicUserViewModelFactory),
         _ => new LoadUsersByIdsCommand(userListVm, _userApiClient, _publicUserViewModelFactory),
     });
Exemplo n.º 2
0
 public CommentListViewModel Create(LoadEntityListEnum loadEntityType)
 => new CommentListViewModel(createLoadCommand: commentListVm => _loadCommentsCommandFactory.Create(commentListVm, loadEntityType));
Exemplo n.º 3
0
 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));
Exemplo n.º 5
0
 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));
Exemplo n.º 8
0
 public BaseCommand Create(EntityListViewModel <CommentViewModel, GetCommentModel> commentListVm, LoadEntityListEnum loadEntityType)
 => loadEntityType switch
 {