public Client( IRequestManager requestManager, IPosts posts) { this.RequestManager = requestManager; Posts = posts; }
public PostsController( IPosts postsService, IForums forumsService, UserManager <ApplicationUser> userManager) { this.postsService = postsService; this.forumsService = forumsService; this.userManager = userManager; }
public PostsController(IPosts _iposts, IMultipleImageData _imageData, IWebHostEnvironment _env, IMapper _map) { this._map = _map; this.iposts = _iposts; this.imageData = _imageData; this.env = _env; }
public AdminController(IAdmin authProvider, IPosts blogRepository = null, IFeedback feedbackRepository = null, IUsligi services = null, IPhoto photo = null, ICategories cat = null) { _blogRepository = blogRepository; _authProvider = authProvider; _feedbackRepository = feedbackRepository; _servicesRepository = services; _photoRepository = photo; _catRepository = cat; }
public PostsResults(IPosts iPosts) { Id = iPosts.Id; UserId = iPosts.UserId; UserOwnerName = iPosts.UserOwnerName; Title = iPosts.Title; ImgLink = iPosts.ImgLink; LikeCount = iPosts.LikeCount; ViewCount = iPosts.ViewCount; CommentsCount = iPosts.CommentsCount; }
//tap on a post and it will expand on it allow you to like or private message private void viewPost_ItemSelected(object sender, SelectedItemChangedEventArgs e) { post = (IPosts)e.SelectedItem; if (stackCreatePost.IsVisible == false) { if (post != null) { txtViewPost.Text = post.Post; stackPosts.IsVisible = false; stackViewPost.IsVisible = true; HomeBackend hBackend = new HomeBackend(); hBackend.GetCommentsInfo(post.Id); if (hBackend.CommentsList != null) { lstComments.ItemsSource = hBackend.CommentsList; } } } }
public PostsController(IPosts posts) { this.posts = posts; }
public BlogController() { postsService = new PostsService(); }
public ManageModel(IPosts post, IConfiguration configuration) { _post = post; ///Reference to blob storage account gateway to storage account BlobImage = new Models.Utilities.Blob(configuration); }
public HomeController(IPosts postsService) { this.postsService = postsService; }
public ForumsController(IForums forumsService, IPosts postsService) { this.forumsService = forumsService; this.postsService = postsService; }
public BlogController(IPosts blogRepository, IPhoto photoRepository, ICategories categoryRepository) { _blogRepository = blogRepository; _photoRepository = photoRepository; _categoryRepository = categoryRepository; }
public WidgetViewModel(IPosts blogRepository) { Categories = blogRepository.CategoriesList(); LatestPosts = blogRepository.PostsList(); }
public PhotoViewModel(int year, int month, string title, IPhoto photoRepository, IPosts blogRepository) { LatestPosts = blogRepository.Post(year, month, title); if (LatestPosts != null) { var post = mapping.GetPostsById(LatestPosts.id); if (post.Album != null) { Photos = photoRepository.PhotosForAlbum(post.Album.id); } } }
/// <summary> /// Constructor controller /// </summary> /// <param name="context">ApplicationDbContext of application</param> /// <param name="mapper">Interface to map over DTO's</param> /// <returns></returns> public PostsController(ApplicationDbContext context, IMapper mapper) { _postsDomain = new PostRepository(context, mapper); }
public CreatePostModel(IPosts post, IConfiguration configuration) { _posts = post; // Blob Storage Account to use in page BlobImage = new Blob(configuration); }
public DetailsModel(IPosts post) { _posts = post; }
public PostDetailsResult(IPosts iPosts) : base(iPosts) { }
public PostsController() { postService = new PostsService(); }
public AdminController() { var bl = new BusinessLogic.BusinessLogic(); _posts = bl.GetPosts(); }
public PostsController(IPosts postService) { this.postService = postService; }
public EditModel(IPosts posts) { _posts = posts; }
public IndexModel(IPosts post, IComment comment) { _post = post; _comment = comment; }