Exemplo n.º 1
0
 public void CancelLeave(Leave leave)
 {
     this.operation = () =>
     {
         LeaveRepopsitory access = new LeaveRepopsitory(this.Transaction);
         access.CancelLeave(leave);
     };
     this.Start(false);
 }
Exemplo n.º 2
0
        public List <PublicHolidays> GetPublicHolidays()
        {
            List <PublicHolidays> holidayses = new List <PublicHolidays>();

            this.operation = () =>
            {
                LeaveRepopsitory access = new LeaveRepopsitory(this.Transaction);
                holidayses = access.GetPublicHolidays();
            };
            this.Start(false);
            return(holidayses);
        }
Exemplo n.º 3
0
        public List <Leave> GetLeaveHistory(string emailId)
        {
            List <Leave> leave = new List <Leave>();

            this.operation = () =>
            {
                LeaveRepopsitory access = new LeaveRepopsitory(this.Transaction);
                leave = access.GetLeaveHistory(emailId);
            };
            this.Start(false);
            return(leave);
        }
Exemplo n.º 4
0
        public List <Leave> GetApplyedLeaves()
        {
            List <Leave> leave = new List <Leave>();

            this.operation = () =>
            {
                LeaveRepopsitory access = new LeaveRepopsitory(this.Transaction);
                leave = access.GetApplyedLeaves();
            };
            this.Start(false);
            return(leave);
        }