public ApplicationPublishesController(ApplicationDbContext context, HostingEnvironment hostingEnvironment) { _context = context; _hostingEnvironment = hostingEnvironment; ApplicationPublishVM = new ApplicationPublishViewModel() { ApplicationPublish = new ApplicationPublish(), Applications = _context.Applications.ToList(), Platforms = _context.Platforms.ToList() }; }
//________________________________________________________________________________ public HomeController(ApplicationDbContext context, HostingEnvironment hostingEnvironment) { _context = context; _hostingEnvironment = hostingEnvironment; ApplicationPublishVM = new ApplicationPublishViewModel() { ApplicationPublish = new ApplicationPublish(), Applications = _context.Applications.ToList(), Platforms = _context.Platforms.ToList() }; CommentVM = new CommentViewModel() { Comment = new Comment(), ApplicationPublish = new ApplicationPublish(), ApplicationStoreUser = new ApplicationStoreUser() }; }