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();
 }
Exemplo n.º 3
0
 public void UpdateTimeRequest(MoreTimeRequestContext context, MoreTimeRequest request)
 {
     context.MoreTimeRequests.Update(request);
 }
Exemplo n.º 4
0
 public void AddTimeRequest(MoreTimeRequestContext context, MoreTimeRequest moreTimeRequest)
 {
     context.MoreTimeRequests.Add(moreTimeRequest);
 }