Beispiel #1
0
        public ActionResult ShowVacationSummary()
        {
            
            String currentUserId = User.Identity.GetUserId();

            DBQuery dbq = new DBQuery();
            int remaining = dbq.SelectRemainingVacationDays(currentUserId);
            int total = dbq.SelectVacationDaysTotal(currentUserId);
            int prevYear = dbq.SelectVacationDaysPreviousYear(currentUserId);
            GUIManagement.VacationEntitlementViewItem summary = new GUIManagement.VacationEntitlementViewItem(currentUserId,remaining,total,prevYear);


            return View(summary);
        }