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; } }