public static void Clear <T>(this Microsoft.EntityFrameworkCore.DbSet <T> dbSet) where T : BaseEntity
 {
     dbSet.RemoveRange(dbSet);
 }