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