Пример #1
0
        public ActionResult Index()
        {
            int currentUserId = 1;
            IEnumerable <LeavePlan> leaves = TimesheetRepository.GetLeavePlans(currentUserId);

            return(View(leaves));
        }
        //
        // GET: /LeavePlan/

        public ActionResult Index()
        {
            int currentUserId = 1;
            var leavePlans    = TimesheetRepository.GetLeavePlans(currentUserId);

            return(View(leavePlans.ToList()));
        }
Пример #3
0
        public ActionResult Team()
        {
            //int currentUserId = 1;
            //IEnumerable<LeavePlan> leaves = TimesheetRepository.GetLeavePlansForTeam(currentUserId);
            IEnumerable <LeavePlan> leaves = TimesheetRepository.GetLeavePlans();

            return(View(leaves));
        }