public void CancelLeave(Leave leave) { this.operation = () => { LeaveRepopsitory access = new LeaveRepopsitory(this.Transaction); access.CancelLeave(leave); }; this.Start(false); }
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); }
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); }
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); }