public async Task <TEntity> FindByIdAsync(int id) { return(await _context.FindAsync <TEntity>(id)); }
public async Task <T> FindById(int id) { using var context = new BlogAppContext(); return(await context.FindAsync <T>(id)); }