예제 #1
0
        public ActionResult GetLeaveSumary()
        {
            IList <LeaveSummary> LeaveRequests = null;

            using (var client = new LeaveClient())
            {
                LeaveRequests = client.GetLeaveSumary(UserId, System.DateTime.Now.Year);
            }
            return(View(LeaveRequests));
        }
예제 #2
0
        public ActionResult LoadApplyLeaveSummary()
        {
            IList <LeaveSummary> LeaveRequests = null;

            using (var client = new LeaveClient())
            {
                LeaveRequests = client.GetLeaveSumary(this.UserId, System.DateTime.Now.Year);
            }
            return(PartialView("LeaveSummaryFullPartial", LeaveRequests));
        }