public static void UpdateEntity <T>(this BudgetContext context, T itemToUpdate) where T : class, IEntity
 {
     itemToUpdate.Modified             = DateTime.UtcNow;
     context.Entry(itemToUpdate).State = EntityState.Modified;
 }
 public static Task <EntityEntry <T> > AddEntity <T>(this BudgetContext context, T itemToAdd) where T : class, IEntity
 {
     itemToAdd.Created  = DateTime.UtcNow;
     itemToAdd.Modified = DateTime.UtcNow;
     return(context.Set <T>().AddAsync(itemToAdd));
 }