/// <summary> /// Checks if a service channel with given id exists in the database. /// </summary> /// <param name="channelId">channel guid as string</param> /// <returns>true if the channel exists otherwise false</returns> protected bool CheckChannelExists(string channelId) { if (string.IsNullOrWhiteSpace(channelId)) { return(false); } Guid?chId = channelId.ParseToGuid(); if (!chId.HasValue) { return(false); } return(ChannelService.ChannelExists(chId.Value)); }