public async Task <string> GetRawContentAsync(string key) { var redirectable = await _redirectableStore.LoadAsync(key); return(redirectable switch { MicroText text => text.Text, MicroUrl url => url.Url, _ => null });
public async Task <string> CreateAsync(MicroUrl microUrl) => await _redirectableStore.CreateAsync(microUrl);