Exemplo n.º 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));
        }
Exemplo n.º 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));
        }