Exemplo n.º 1
0
        //[Authorize]
        //[Authorize(Roles = "Client")]
        public ActionResult Client()
        {
            UserViewModel userdetails = generic.GetUserDetail(User.Identity.GetUserId());

            ViewData["UserProfile"] = userdetails;
            //If Client has team members with all rights
            if (userdetails.CorporateId != null && userdetails.CorporateId != userdetails.SubscriberId)
            {
                userdetails.UserId = userdetails.CorporateId;
            }
            ViewData["CompanyLogo"] = cms.GetCompanyLogo(userdetails.SubscriberId).FirstOrDefault();
            //var plandetail = admin.GetUserplanDetails(userdetails.SubscriberId).Where(c => c.AddOnId == 3).FirstOrDefault();
            //ViewData["plandetail"] = plandetail;
            var getCount = admin.GetRecordCountForClint(userdetails.UserId);

            ViewBag.NotificationCount  = admin.SPCountNotification(userdetails.UserId).TOTALNOTIFICATION;
            ViewData["JobOrderStatus"] = cms.GetJobOrderStatusCount(userdetails.UserId);
            ViewData["InvoiceStatus"]  = cms.GetInvoicetatusCount(userdetails.UserId);
            ViewData["TrainingStatus"] = cms.GetTrainingstatusCount(userdetails.UserId);

            return(View(getCount));
        }