public ViewBoardPostModel(IBoardsServices boardsServices, IPostsServices postsServices, IUsersServices usersServices, ILogger <ViewBoardPostModel> logger)
 {
     _boardsServices = boardsServices;
     _postsServices  = postsServices;
     _usersServices  = usersServices;
     _logger         = logger;
 }
Beispiel #2
0
 public CreatePostsModel(IBoardsServices boardsServices, IPostsServices postsServices, IUsersServices usersServices, ILogger <CreatePostsModel> logger)
 {
     _boardsServices = boardsServices;
     _postsServices  = postsServices;
     _usersServices  = usersServices;
     _logger         = logger;
 }
 public BoardDetailsModel(IBoardsServices boardsServices, IPostsServices postsServices, IUsersServices usersServices, ILogger <BoardDetailsModel> logger)
 {
     _boardsServices = boardsServices;
     _postsServices  = postsServices;
     _usersServices  = usersServices;
     _logger         = logger;
 }
Beispiel #4
0
 public EditUserModel(IBoardsServices boardsServices, IPostsServices postsServices, IUsersServices usersServices, ILogger <EditUserModel> logger)
 {
     _boardsServices = boardsServices;
     _postsServices  = postsServices;
     _usersServices  = usersServices;
     _logger         = logger;
 }
 public DeleteBoardModel(IBoardsServices boardsServices, IPostsServices postsServices, IUsersServices usersServices, ILogger <DeleteBoardModel> logger)
 {
     _boardsServices = boardsServices;
     _postsServices  = postsServices;
     _usersServices  = usersServices;
     _logger         = logger;
 }
Beispiel #6
0
 public BlogsController(PblogsContext context, IPostsServices postsServices, IMemoryCache cache, IHubContext <Signalr> hubContext, IWebHostEnvironment hostEnvironment)
 {
     _context              = context;
     _postsServices        = postsServices;
     _Cache                = cache;
     _hubContext           = hubContext;
     this._hostEnvironment = hostEnvironment;
 }
Beispiel #7
0
        public UsercontrolController(PblogsContext context, IMemoryCache Cache, IUserServices userServices, IPostsServices postsServices)
        {
            _Cache         = Cache;
            _context       = context;
            _postsServices = postsServices;

            _userServices = userServices;
        }
Beispiel #8
0
 public AdminController()
 {
     this.log  = new LogService();
     this.post = new PostsServices();
     this.user = new UserService();
     this.ViewModel["users"]   = "none";
     this.ViewModel["posts"]   = "none";
     this.ViewModel["title"]   = "none";
     this.ViewModel["content"] = "none";
     this.ViewModel["logs"]    = "none";
 }
Beispiel #9
0
 public HomeController(IPostsServices postsSevices)
 {
     this.postsSevices = postsSevices;
 }
Beispiel #10
0
 public PostsController()
 {
     this.post = new PostsServices();
 }
Beispiel #11
0
 public PostsController(IPostsServices postsServices, ICategoriaServices categoriaServices)
 {
     this.postsServices     = postsServices;
     this.categoriaServices = categoriaServices;
 }
 public PostsController(IPostsServices postsServices, ITagsServices tagsServices)
 {
     this.posts = postsServices;
     this.tags  = tagsServices;
 }
Beispiel #13
0
 public HomeController()
 {
     this.log  = new LogService();
     this.post = new PostsServices();
 }
Beispiel #14
0
 public PostsApiController(IPostsServices postService)
 {
     _postService = postService;
 }
Beispiel #15
0
 public PostController(IPostsServices postservice,
                       UserManager <ApplicationUser> userManager)
 {
     _postservice = postservice;
     _userManager = userManager;
 }