コード例 #1
0
        //[Authorize(Roles = "Admin")]
        public ActionResult BirthDay()
        {
            var userdetails = generic.GetUserDetail(User.Identity.GetUserId());

            ViewData["UserProfile"] = userdetails;
            ViewBag.UserId          = userdetails.SubscriberId;
            ViewData["EmpDetails"]  = emsMgr.GetEmployeeBasicDetails(userdetails.UserId).FirstOrDefault();
            ViewData["CompanyLogo"] = cmsMgr.GetCompanyLogo(userdetails.SubscriberId).FirstOrDefault();
            var plandetail = admin.GetUserplanDetails(userdetails.SubscriberId).Where(c => c.AddOnId == 3).FirstOrDefault();

            ViewData["plandetail"] = plandetail;
            List <EmployeeBasicDetails> employeebasicdetails = emsMgr.GetBirthday(userdetails.SubscriberId);

            ViewData["Birthday"] = employeebasicdetails.AsEnumerable();
            return(View());
        }