Exemplo n.º 1
0
 public ActionResult WTOGetHSCodeDataByCountry()
 {
     if (Convert.ToString(Session["UserId"]).Trim().Length > 0)
     {
         DashboardBusinessService obj  = new DashboardBusinessService();
         DashboardSearch          obj1 = new DashboardSearch();
         return(View("~/Views/Partial/Dashboard/DashboardHSCodeByCountry.cshtml", obj.GetHsCodeGraphDataCountryWise(obj1)));
     }
     else
     {
         return(PartialView("RedirectToLogin"));
     }
 }
Exemplo n.º 2
0
 public ActionResult GetNotificationGraphData(DashboardSearch obj1)
 {
     if (Convert.ToString(Session["UserId"]).Trim().Length > 0)
     {
         DashboardBusinessService obj = new DashboardBusinessService();
         DateTime d = DateTime.Now;
         d             = d.AddMonths(-1);
         obj1.DateFrom = d.ToString("dd MMM yyyy");
         return(View("~/Views/Partial/Dashboard/DashboardNotificationHistory.cshtml", obj.GetNotificationGraphDataMonthly(obj1)));
     }
     else
     {
         return(PartialView("RedirectToLogin"));
     }
 }
Exemplo n.º 3
0
 //Lets inject the services using the constructor, this is called Constructor Dependency Injection
 public HomeController(
     IMemoryCache memoryCache,
     ILogger <HomeController> logger,
     IRepository <Election> electionRepository,
     UserBusinessService userBusiness,
     IStringLocalizer <Messages> messagesLoclizer,
     ElectionBusinessService electionBusiness,
     DashboardBusinessService dashboardBusiness,
     CandidateBusinessService candidateBusiness)
 {
     _logger            = logger;
     _electionBusiness  = electionBusiness;
     _userBusiness      = userBusiness;
     _memoryCache       = memoryCache;
     _messagesLoclizer  = messagesLoclizer;
     _dashboardBusiness = dashboardBusiness;
     _candidateBusiness = candidateBusiness;
 }
Exemplo n.º 4
0
 public ActionResult GetDashboardAction(DashboardSearch obj)
 {
     if (Convert.ToString(Session["UserId"]).Trim().Length > 0)
     {
         if (obj.DateFrom == null)
         {
             obj.DateFrom = "";
         }
         if (obj.DateTo == null)
         {
             obj.DateTo = "";
         }
         ViewBag.FromDate = obj.DateFrom;
         ViewBag.ToDate   = obj.DateTo;
         DashboardBusinessService objDBS = new DashboardBusinessService();
         return(View("~/Views/Partial/Dashboard/DashboardAction.cshtml", objDBS.GetDashboardAction(obj)));
     }
     else
     {
         return(PartialView("RedirectToLogin"));
     }
 }
Exemplo n.º 5
0
        public IHttpActionResult WTOGetNotificationGraphDataMonthly(DashboardSearch obj1)
        {
            DashboardBusinessService obj = new DashboardBusinessService();

            return(Ok(obj.GetNotificationGraphDataMonthly(obj1)));
        }
Exemplo n.º 6
0
        public IHttpActionResult WTOGetHSCodeDataByCountry(DashboardSearch obj1)
        {
            DashboardBusinessService obj = new DashboardBusinessService();

            return(Ok(obj.GetHsCodeGraphDataCountryWise(obj1)));
        }