/// <summary> /// Gives an employee a raise /// </summary> /// <param name="raise">All info needed for a raise</param> /// <returns>Updated raise info</returns> public static PayRaise UpdateRaise(IPayRaise raise) { raise = HRSQL.CommitRaise(raise, false); PayRaise objRaise = PayFactory.Create(); objRaise.empId = raise.empId; objRaise.payIn = raise.payIn; objRaise.oldPay = raise.oldPay; objRaise.oldAffDate = raise.oldAffDate; objRaise.newPay = raise.newPay; objRaise.newAffDate = raise.newAffDate; return(objRaise); }
/// <summary> /// Gives all employees and departments a living cost raise /// </summary> /// <param name="raise">All info for a raise</param> public static void UpdateAllRaises(IPayRaise raise) { raise = HRSQL.CommitRaise(raise, true); }