public ActionResult <string> UpdateDatabase() { ffrkSheetContext.SetupProperties(); var updated = ffrkSheetContext.LastUpdateSuccessful; return(updated.ToString()); }
public async Task UpdateDbAsync() { await Context.Channel.SendMessageAsync("Commencing Sheet Update. Commands will be unavailable until completion."); var update = await ffrkSheetContext.SetupProperties(); if (update) { await Context.Channel.SendMessageAsync("Update Successful, commands may resume."); } else { await Context.Channel.SendMessageAsync("Update Failed. Feel free to try again later, if it doesn't work ping Purgedmoon"); } }