Beispiel #1
0
 private async Task <IEnumerable <SubjectModel> > GetSubjectList()
 {
     try
     {
         using (var scope = AppSession.TypeContainer.BeginLifetimeScope())
         {
             var dbs = scope.Resolve <IDataBaseService>();
             return(await dbs.FetchRecordSetAsync(SubjectSQL.SelectSubject(), SubjectModel.Create));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }