public IActionResult GetAllChannels() { List <Channel> channels = _channelLogic.GetAllChannels().ToList(); if (channels == null) { return(BadRequest("Error")); } if (channels.Count == 0) { return(NotFound()); } return(Ok(channels)); }
public IActionResult GetAllChannels() { List <Channel> channels = _channelLogic.GetAllChannels().ToList(); if (channels == null) { return(BadRequest("Error")); } if (channels.Count == 0) { return(NotFound()); } return(Ok(channels)); }