Пример #1
0
        public ActionResult EmployeeProfile(string UserId)
        {
            UserViewModel userdetails = generic.GetUserDetail(User.Identity.GetUserId());

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

            ViewData["Profile"] = db.EmployeeBasicDetails.Find(UserId);
            //ViewData["Address"] = db.EmpAddressDetails.Where(u => u.UserId == UserId).ToList();
            var addressdetails = ems.GetAddressDetails(UserId);

            ViewData["AddressList"]    = addressdetails;
            ViewData["Education"]      = db.EmpEducationalDetails.Where(u => u.UserId == UserId).ToList();
            ViewData["Experience"]     = db.EmpExperienceDetails.Where(u => u.UserId == UserId).ToList();
            ViewData["Skill"]          = db.EmpSkillDetails.Where(u => u.UserId == UserId).ToList();
            ViewData["Social"]         = db.EmpSocialDetails.Find(UserId);
            ViewData["Reporting"]      = ems.GetSubscriberWiseEmployeeList(userdetails.SubscriberId).Where(r => r.UserId == UserId).FirstOrDefault();
            ViewData["Language"]       = student.GetLanguages(UserId);
            ViewData["Cretifications"] = db.Certification.Where(c => c.UserId == UserId).ToList();
            return(View(generic.GetUserDetail(UserId)));
        }