public async Task <IActionResult> Tracker(string id) { var model = new TrackerViewModel(); var tag = Utils.LinkIdToTag(id); logger.LogInformation("Tracker {0}", id); try { if (!string.IsNullOrEmpty(tag)) { var clan = db.Clans.SingleOrDefault(c => c.Tag == tag); if (clan != null) { var data = new List <IList <object> > { new List <object> { clan.LinkID } }; await googleSheets.Update(Constants.DONATION_TRACKER_SHEET_ID, "ROWS", "Setup!B2", data); model.ClanName = clan.Name; model.ClanTag = clan.Tag; } } } catch (Exception e) { logger.LogError("Tracker.Error: {0}", e.ToString()); } return(View(model)); }