public ActionResult GetLeaveSumary() { IList <LeaveSummary> LeaveRequests = null; using (var client = new LeaveClient()) { LeaveRequests = client.GetLeaveSumary(UserId, System.DateTime.Now.Year); } return(View(LeaveRequests)); }
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)); }