/// <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(); }
/// <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(); }