/// <summary>
 /// Updates entity within the the repository
 /// </summary>
 /// <param name="entity">the entity to update</param>
 public void Update(ScheduledBackup entity)
 {
     BackupContext.Entry(entity).State = EntityState.Modified;
     BackupContext.SaveChanges();
 }
Example #2
0
 /// <summary>
 /// Updates entity within the the repository
 /// </summary>
 /// <param name="entity">the entity to update</param>
 public void Update(ActivityInfo entity)
 {
     BackupContext.Entry(entity).State = EntityState.Modified;
     BackupContext.SaveChanges();
 }