Esempio n. 1
0
 private async Task <long> AddStudentAllocation(long studentId)
 {
     try
     {
         using (var scope = AppSession.TypeContainer.BeginLifetimeScope())
         {
             var dbs = scope.Resolve <IDataBaseService>();
             return(await dbs.AddRecordAsync(StudentSQL.InsertStudentAllocation(), CreateInsertParams(studentId)));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }