Exemplo n.º 1
0
        public ActionResult Overview()
        {
            ViewBag.Message = "Contact Service Overview.";
            Response.AddHeader("Refresh", "30");
            var overviewService = new OverviewService();
            var overviewModel   = overviewService.GetOverview();

            return(View(overviewModel));
        }
 public static IOverviewService<Overview> GetJobSeekerOverview()
 {
     IOverviewService<SkillSmart.Dto.Overview> serviceObj = null;
     switch (sectionHandler.ConnectionStringName)
     {
         case DataBaseType.SKILLSMART_MONGO_DB: serviceObj = new OverviewService(DatabaseFactory.CreateMongoDatabase());
             break;
         default: serviceObj = new OverviewService(DatabaseFactory.CreateMongoDatabase());
             break;
     }
     return serviceObj;
 }
        public static IOverviewService <Overview> GetJobSeekerOverview()
        {
            IOverviewService <SkillSmart.Dto.Overview> serviceObj = null;

            switch (sectionHandler.ConnectionStringName)
            {
            case DataBaseType.SKILLSMART_MONGO_DB: serviceObj = new OverviewService(DatabaseFactory.CreateMongoDatabase());
                break;

            default: serviceObj = new OverviewService(DatabaseFactory.CreateMongoDatabase());
                break;
            }
            return(serviceObj);
        }
Exemplo n.º 4
0
 protected override async Task OnInitializedAsync()
 {
     OverviewModel = await OverviewService.GetOverview();
     await ConnectToWorkerSignalrHub();
 }