示例#1
0
 private static async Task <long> LogUserEnterAttempt(string userName, byte status)
 {
     try
     {
         using (var scope = AppSession.TypeContainer.BeginLifetimeScope())
         {
             var dbs = scope.Resolve <IDataBaseService>();
             return(await dbs.AddRecordAsync(UserSQL.LogIn(), CreateInsertParams(userName, status)));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }