public IHttpActionResult GetChannelList() { try { ChannelController channelCore = new ChannelController(); // Call core, general Register process ActionResponse action = channelCore.GetAllAction(); if (action.code == (int)CodeStatusEnum.OK) { return(ResponseOk(action.data)); } // OK else { return(ResponseError(action.code, action.message)); } // NOK } catch (Exception ex) { logger.Fatal(ex.Message); return(ResponseError((int)CodeStatusEnum.INTERNAL_ERROR, "Error desconocido en el sistema")); } }