public async Task <IEnumerable <InterpretationDto> > GetInterpretationAsync <T>() where T : Interpretation { return(await db.Set <T>().Select(x => new InterpretationDto { Name = x.Name, Type = x.Type }).ToListAsync()); }
public virtual async Task <T> GetByIdAsync(string id) { return(await db.Set <T>().FindAsync(id)); }