コード例 #1
0
        public HomeController(IEitanUow uow)
        {
            Uow = uow;
            ViewBag.HomeActive    = "active";
            ViewBag.ProjectsCount = Uow.ProjectRepository.GetAll().Count();
            var ProjEntity = Uow.ProjectRepository.GetAllDesc().FirstOrDefault();

            if (ProjEntity != null)
            {
                ViewBag.ProjectID    = ProjEntity.ID;
                ViewBag.ProjectTitle = ProjEntity.Title;
            }
            ViewBag.NewsCount = Uow.NewsRepository.GetAll().Count();
            var NewsEntity = Uow.NewsRepository.GetAllDesc().FirstOrDefault();

            if (NewsEntity != null)
            {
                ViewBag.NewsID    = NewsEntity.ID;
                ViewBag.NewsTitle = NewsEntity.Title;
            }
            ViewBag.ReleasesCount = Uow.ReleaseRepository.GetAll().Count();
            var RelEntity = Uow.ReleaseRepository.GetAllDesc().FirstOrDefault();

            if (RelEntity != null)
            {
                ViewBag.ReleaseID    = RelEntity.ID;
                ViewBag.ReleaseTitle = RelEntity.Title;
            }
        }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: RonenZ/EitanMVC
 public HomeController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.HomeActive = "active";
     ViewBag.ProjectsCount = Uow.ProjectRepository.GetAll().Count();
     var ProjEntity = Uow.ProjectRepository.GetAllDesc().FirstOrDefault();
     if (ProjEntity != null)
     {
         ViewBag.ProjectID = ProjEntity.ID;
         ViewBag.ProjectTitle = ProjEntity.Title;
     }
     ViewBag.NewsCount = Uow.NewsRepository.GetAll().Count();
     var NewsEntity = Uow.NewsRepository.GetAllDesc().FirstOrDefault();
     if (NewsEntity != null)
     {
         ViewBag.NewsID = NewsEntity.ID;
         ViewBag.NewsTitle = NewsEntity.Title;
     }
     ViewBag.ReleasesCount = Uow.ReleaseRepository.GetAll().Count();
     var RelEntity = Uow.ReleaseRepository.GetAllDesc().FirstOrDefault();
     if (RelEntity != null)
     {
         ViewBag.ReleaseID = RelEntity.ID;
         ViewBag.ReleaseTitle = RelEntity.Title;
     }
 }
コード例 #3
0
ファイル: ProjectsController.cs プロジェクト: RonenZ/EitanMVC
 public ProjectsController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.ProjectsActive = "active";
 }
コード例 #4
0
ファイル: ReleasesController.cs プロジェクト: RonenZ/EitanMVC
 public ReleasesController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.ReleasesActive = "active";
 }
コード例 #5
0
 public ProjectsController(IEitanUow uow)
 {
     Uow = uow;
 }
コード例 #6
0
 public ProjectsController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.ActiveProjects = "active";
 }
コード例 #7
0
 public NewsController(IEitanUow uow)
 {
     Uow = uow;
 }
コード例 #8
0
 public ProjectsController(IEitanUow uow)
 {
     Uow = uow;
 }
コード例 #9
0
ファイル: HomeController.cs プロジェクト: RonenZ/EitanMVC
 public HomeController(IEitanUow uow)
 {
     Uow = uow;
 }
コード例 #10
0
 public ArtistsController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.ArtistsActive = "active";
 }
コード例 #11
0
ファイル: PagesController.cs プロジェクト: RonenZ/EitanMVC
 public PagesController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.PagesActive = "active";
 }
コード例 #12
0
ファイル: NewsController.cs プロジェクト: RonenZ/EitanMVC
 public NewsController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.NewsActive = "active";
 }
コード例 #13
0
ファイル: ApiNewsController.cs プロジェクト: RonenZ/EitanMVC
 public NewsController(IEitanUow uow)
 {
     Uow = uow;
 }
コード例 #14
0
ファイル: HomeController.cs プロジェクト: RonenZ/EitanMVC
 public HomeController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.HomeActive = "active";
 }
コード例 #15
0
ファイル: ArtistsController.cs プロジェクト: RonenZ/EitanMVC
 public ArtistsController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.ArtistsActive = "active";
 }
コード例 #16
0
 public PagesController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.PagesActive = "active";
 }
コード例 #17
0
ファイル: HomeController.cs プロジェクト: weedkiller/EitanMVC
 public HomeController(IEitanUow uow)
 {
     Uow = uow;
 }
コード例 #18
0
 public ReleasesController(IEitanUow uow)
 {
     Uow = uow;
 }
コード例 #19
0
ファイル: NewsController.cs プロジェクト: weedkiller/EitanMVC
 public NewsController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.NewsActive = "active";
 }
コード例 #20
0
 public ReleasesController(IEitanUow uow)
 {
     Uow = uow;
 }
コード例 #21
0
 public ContentPageController(IEitanUow uow)
 {
     Uow = uow;
 }
コード例 #22
0
 public HomeController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.HomeActive = "active";
 }
コード例 #23
0
 public ReleasesController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.ActiveReleases = "active";
     StaticCode.StaticYears = Uow.ReleaseRepository.GetReleaseYears();
 }
コード例 #24
0
ファイル: ReleasesController.cs プロジェクト: RonenZ/EitanMVC
 public ReleasesController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.ActiveReleases = "active";
     StaticCode.StaticYears = Uow.ReleaseRepository.GetReleaseYears();
 }
コード例 #25
0
 public ReleasesController(IEitanUow uow)
 {
     Uow = uow;
     ViewBag.ReleasesActive = "active";
 }