// GET: DailyLeaves
        public ActionResult Index()
        {
            DailyLeaveManager dlm = new DailyLeaveManager(this.UOW);
            var dailyLeaves       = dlm.GetAllByUserID(this.CurrentUser.ID).OrderByDescending(d => d.RegisterDate);

            return(View(new DailyLeaveAssembles().ToJsons(dailyLeaves.ToList())));
        }
示例#2
0
        // GET: DailyLeaves
        public ActionResult Index()
        {
            DailyLeaveManager dlm = new DailyLeaveManager(UOW);
            var currentUser       = new UserHelper().GetCurrent();
            var dailyLeaves       = dlm.GetAllByUserID(currentUser.ID);

            return(View(new DailyLeaveAssembles().ToJsons(dailyLeaves.ToList())));
        }