Пример #1
0
        //[Authorize(Roles = "Employee")]
        public ActionResult EducationalDetails(string EducationLevel, string Degree, string Specialization, string University, string Institution, string YearOfPassing, string Percentage, bool status = false, string useraction = "Add")
        {
            ViewBag.Result = "Failed";
            if (status == true)
            {
                ViewBag.Result = "Succeeded";
            }

            string UserId      = User.Identity.GetUserId();
            var    userdetails = generic.GetUserDetail(UserId);

            ViewData["UserProfile"] = userdetails;
            ViewData["EmpDetails"]  = ems.GetEmployeeBasicDetails(UserId).FirstOrDefault();
            ViewData["CompanyLogo"] = cms.GetCompanyLogo(userdetails.SubscriberId).FirstOrDefault();
            ViewBag.Degree          = Degree;
            ViewBag.Specialization  = Specialization;
            ViewBag.University      = University;
            ViewBag.Institution     = Institution;
            ViewBag.YearOfPassing   = YearOfPassing;
            ViewBag.Percentage      = Percentage;
            ViewBag.EduLevelId      = EducationLevel;
            ViewBag.Action          = useraction;
            PopulateEducationalLevel(EducationLevel);
            PopulateYear(YearOfPassing);

            var empedudetails = ems.GetEmployeeEducationalDetails(UserId);

            return(View(empedudetails));
        }