public static async Task <WebChannelGroup> ProcessAsync(IOwinContext context, string groupId) { if (!ServiceRegistration.IsRegistered <ITvProvider>()) { throw new BadRequestException("GetRadioGroupById: ITvProvider not found"); } // select the channel Group we are looking for var group = await TVAccess.GetGroupAsync(context, int.Parse(groupId)); if (group == null) { throw new NotFoundException(string.Format("GetRadioGroupById: group with id: {0} not found", groupId)); } WebChannelGroup webChannelGroup = ChannelGroup(group); return(webChannelGroup); }