Beispiel #1
0
 // GET: User/Home
 public ActionResult Index()
 {
     if (TempData["msg"] != null)
     {
         TempData["Message"] = TempData["msg"];
     }
     TempData["pendingRequest"]    = _RequestSubmitBs.RequestSubmitList().Where(m => m.IsApproved == null).Count();
     TempData["ApproveRequest"]    = _RequestSubmitBs.RequestSubmitList().Where(m => m.IsApproved == true).Count();
     TempData["RejectedRequest"]   = _RequestSubmitBs.RequestSubmitList().Where(m => m.IsApproved == false).Count();
     TempData["UserRegistrations"] = _UserRegistrationBs.UserRegistrationList().Count();
     return(View());
 }
        // GET: BoardMember/RequestList
        public ActionResult Index(int?page)
        {
            TempData["msg"] = TempData["message"];

            int userid      = new UserRegistrationBs().UserRegistrationList().Where(x => x.UserName == User.Identity.Name).FirstOrDefault().Id;
            var RequestList = _RequestSubmitBs.RequestSubmitList().Where(x => x.UserId == userid).ToList().ToPagedList(page ?? 1, 10);

            return(View(RequestList));
        }
        // GET: BoardMember/RequestList
        public ActionResult Index(int?page)
        {
            var RequestList = _RequestSubmitBs.RequestSubmitList().Where(m => m.IsApproved == null).ToList().ToPagedList(page ?? 1, 10);

            return(View(RequestList));
        }