Esempio n. 1
0
        //[Authorize(Roles = "Employee")]
        public ActionResult SocialDetails(bool status = false)
        {
            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();

            var Empsocialdetails = ems.GetEmployeeSocialDetails(UserId);

            return(View(Empsocialdetails));
        }