示例#1
0
 public PostsController(IGetPostsCommand getCommand, IGetPostCommand getOneCommand, IAddPostCommand addCommand, IEditPostCommand editCommand, IDeletePostCommand deleteCommand)
 {
     _getCommand    = getCommand;
     _getOneCommand = getOneCommand;
     _addCommand    = addCommand;
     _editCommand   = editCommand;
     _deleteCommand = deleteCommand;
 }
示例#2
0
 public PostController(IGetPostsCommand getPostsCommand, IGetPostCommand getPostCommand, IAddPostCommand addPostCommand, IEditPostCommand editPostCommand, IDeletePostCommand deletePostCommand, LoggedUser loggedUser)
 {
     _getPostsCommand    = getPostsCommand;
     _getPostCommand     = getPostCommand;
     _addPostsCommand    = addPostCommand;
     _editPostsCommand   = editPostCommand;
     _deletePostsCommand = deletePostCommand;
     _loggedUser         = loggedUser;
 }
示例#3
0
 public PostsController(BlogContext context, IGetPostsCommand getCommand, IGetPostCommand getOneCommand, IAddPostCommand addCommand, IEditPostCommand editCommand, IDeletePostCommand deleteCommand)
 {
     Context        = context;
     _getCommand    = getCommand;
     _getOneCommand = getOneCommand;
     _addCommand    = addCommand;
     _editCommand   = editCommand;
     _deleteCommand = deleteCommand;
 }
示例#4
0
 public PostsController(Context context, IAddPostCommand addPost, IGetPostsCommand getPosts, IGetPostCommand getOnePost, IEditPostCommand editPost, IDeletePostCommand deletePost)
 {
     _context    = context;
     _addPost    = addPost;
     _getPosts   = getPosts;
     _getOnePost = getOnePost;
     _editPost   = editPost;
     _deletePost = deletePost;
 }
 public PostsController(Context context, IGetPostsCommand getCommand, IGetPostCommand getOneCommand, IAddPostCommand addCommand, IEditPostCommand editCommand, IDeletePostCommand deleteCommand, IEmailSender emailSender)
 {
     _context       = context;
     _getCommand    = getCommand;
     _getOneCommand = getOneCommand;
     _addCommand    = addCommand;
     _editCommand   = editCommand;
     _deleteCommand = deleteCommand;
     _emailSender   = emailSender;
 }
示例#6
0
 public PostsController(IGetPostCommand getPost,
                        IGetPostsCommand getPosts,
                        IAddPostCommand addPost,
                        IEditPostCommand editPost,
                        IDeletePostCommand deletePost,
                        LoggedUser user)
 {
     _getPost    = getPost;
     _getPosts   = getPosts;
     _addPost    = addPost;
     _editPost   = editPost;
     _deletePost = deletePost;
     _user       = user;
 }
示例#7
0
 public PostsController(IGetPostsCommand getPosts,
                        IGetPostCommand getPost,
                        IDeletePostCommand deletePost,
                        IAddPostCommand addPost,
                        IGetCategoriesWithoutPaginationCommand getCategories,
                        IGetUsersWithoutPaginationCommand getUsers,
                        IGetTagsWithoutPaginationCommand getTags,
                        IEditPostCommand editPost)
 {
     _getPosts      = getPosts;
     _getPost       = getPost;
     _deletePost    = deletePost;
     _addPost       = addPost;
     _getCategories = getCategories;
     _getUsers      = getUsers;
     _getTags       = getTags;
     _editPost      = editPost;
 }
 public BlogsFromDatabasePresenter(IPageOfPostsQuery query, IAddPostCommand addPostCommand, IDeletePostCommand deletePostCommand)
 {
     _query = query;
     _addPostCommand = addPostCommand;
     _deletePostCommand = deletePostCommand;
 }