// 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()))); }
// 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()))); }