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());
 }
Example #2
0
 public virtual async Task <T> GetByIdAsync(string id)
 {
     return(await db.Set <T>().FindAsync(id));
 }