public async Task <SlackResponseVM> Details() { string input = await Request.Content.ReadAsStringAsync(); string str = input; SlackMessage msg = SlackMessage.FromString(str); msg.MessageType = SlackMessageType.OutgoingWebhooks; Regex regex = new Regex(@"((US|Us|uS|us)\d{1,9})|(((dE|de|De|DE)\d{1,9}))"); Match m = regex.Match(msg.Text); if (!m.Success) { if (msg.Text.ToLower().Contains("kanban")) { return(new SlackResponseVM(GetKanban(msg.ChannelName))); } return(new SlackResponseVM("_Whuaaat?_")); } string formattedId = m.Groups[0].Value; string result = GetItem(formattedId, msg.ChannelName); return(new SlackResponseVM(result)); }