private async Task<bool> LogItemAsync(LogItem logItem) { LogDataContext logDataContext = new LogDataContext(logItem.LogType, _storageAccount); bool response = await logDataContext.LogActivity(logItem); return response; }
public async Task<List<LogByIPAddressTableEntity>> GetLogsByIPAddressAsync(string logType, string ipAddress, int amount) { LogDataContext logDataContext = new LogDataContext(logType, _storageAccount); return await logDataContext.GetLogsByIPTask(ipAddress, amount); }
public async Task<List<LogByActivityTableEntity>> GetLogsByActivityAsync(string logType, string activity, int amount) { LogDataContext logDataContext = new LogDataContext(logType, _storageAccount); return await logDataContext.GetLogsByActivityTask(activity, amount); }
public async Task<List<LogByUserTableEntity>> GetLogsByUserAsync(string logType, string userName, int amount) { LogDataContext logDataContext = new LogDataContext(logType, _storageAccount); return await logDataContext.GetLogsByUserTask(userName, amount); }