示例#1
0
        //[Authorize(Roles = "Client")]
        public ActionResult Partner()
        {
            string        UserId      = User.Identity.GetUserId();
            UserViewModel userdetails = generic.GetUserDetail(UserId);

            ViewData["UserProfile"] = userdetails;
            ViewData["CompanyLogo"] = cms.GetCompanyLogo(userdetails.SubscriberId).FirstOrDefault();
            var UserDetails = ems.GetEmployeeBasicDetails(UserId).FirstOrDefault();

            ViewData["EmpDetails"] = UserDetails;
            //var plandetail = admin.GetUserplanDetails(userdetails.SubscriberId).Where(c => c.AddOnId == 3).FirstOrDefault();
            //ViewData["plandetail"] = plandetail;
            ViewData["EmpInvoiceStatus"] = cms.GetEMPInvoicetatusCount(UserId);
            ViewData["TaskStatus"]       = cms.GetTaskCount(UserId);
            ViewData["TrainingStatus"]   = cms.GetTrainingCount(UserId);


            return(View(admin.GetUserwiseTasksInvoicesAndTrainigsCount(UserId)));
        }