Esempio n. 1
0
 public async Task <IEnumerable <Employee> > GetByUnitIdAsync(Guid id)
 {
     using (var connection = context.CreateConnection())
     {
         return(await connection.QueryAsync <Employee>(EmployeeQuery.ByUnitId(id)));
     }
 }