private static async Task <LastTrack> GetLastTrack(string username) { try { var tracks = await LastFm.GetRecentScrobbles(username); return(tracks.FirstOrDefault()); } catch (ServiceException) { return(null); } }
private static async Task <LastTrack> GetLastTrack(string username) { try { var tracks = await LastFm.GetRecentScrobbles(username); return(tracks.FirstOrDefault()); } catch (ServiceException) { return(null); } }