public void Update(MoreTimeRequest newRequest)
 {
     RequestTimeStamp             = newRequest.RequestTimeStamp;
     Expired                      = newRequest.Expired;
     Alerted                      = newRequest.Alerted;
     LengthInMinutes              = newRequest.LengthInMinutes;
     MinutesToAdjustClockBy       = newRequest.MinutesToAdjustClockBy;
     TimeAdjustmentAtCreationTime = newRequest.TimeAdjustmentAtCreationTime;
     UserId = newRequest.UserId;
 }
 public void RemoveAllTimeRequests()
 {
     foreach (var id in MoreTimeRequests.Select(e => e.Id))
     {
         var entity = new MoreTimeRequest {
             Id = id
         };
         MoreTimeRequests.Attach(entity);
         MoreTimeRequests.Remove(entity);
     }
     SaveChanges();
 }
Example #3
0
 public void UpdateTimeRequest(MoreTimeRequestContext context, MoreTimeRequest request)
 {
     context.MoreTimeRequests.Update(request);
 }
Example #4
0
 public void AddTimeRequest(MoreTimeRequestContext context, MoreTimeRequest moreTimeRequest)
 {
     context.MoreTimeRequests.Add(moreTimeRequest);
 }