Exemplo n.º 1
0
 private MemberAttendance GetNewMemberAttendance(int attendanceId, MemberAttendance item)
 {
     return new MemberAttendance
     {
         AttendanceId = attendanceId,
         MondayRate = item.MondayRate,
         TuesdayRate = item.TuesdayRate,
         WednesdayRate = item.WednesdayRate,
         ThursdayRate = item.ThursdayRate,
         FridayRate = item.FridayRate,
         SaturdayRate = item.SaturdayRate,
         SundayRate = item.SundayRate,
         Monday = item.Monday,
         Tuesday = item.Tuesday,
         Wednesday = item.Wednesday,
         Thursday = item.Thursday,
         Friday = item.Friday,
         Saturday = item.Saturday,
         Sunday = item.Sunday,
         CreatedBy = User.Identity.Name,
         CreatedOn = DateTime.UtcNow,
         ModifiedBy = User.Identity.Name,
         ModifiedOn = DateTime.UtcNow,
         MemberId = item.Member.MemberId
     };
 }
Exemplo n.º 2
0
 private void UpdateMemberAttendanceData(MemberAttendance source, MemberAttendance destination)
 {
     destination.ModifiedBy = User.Identity.Name;
     destination.ModifiedOn = DateTime.UtcNow;
     destination.Monday = source.Monday;
     destination.MondayRate = source.MondayRate;
     destination.Tuesday = source.Tuesday;
     destination.TuesdayRate = source.TuesdayRate;
     destination.Wednesday = source.Wednesday;
     destination.WednesdayRate = source.WednesdayRate;
     destination.Thursday = source.Thursday;
     destination.ThursdayRate = source.ThursdayRate;
     destination.Friday = source.Friday;
     destination.FridayRate = source.FridayRate;
     destination.Saturday = source.Saturday;
     destination.SaturdayRate = source.SaturdayRate;
     destination.Sunday = source.Sunday;
     destination.SundayRate = source.SundayRate;
 }