public override async Task <IActionResult> Get() { try { BaseResult <List <Models.Response.ChannelManager> > result = await _iChannelManagerRepository.Get(); if (result.Result == null || result.Result.Count() == 0) { if (result.IsError && result.ExceptionMessage != null) { return(new StatusCodeResult(500)); } else if (result.Result == null || result.Result.Count() == 0) { return(NoContent()); //204 } } return(Ok(result)); } catch (Exception ex) { Dictionary <string, string> inputParameter = new Dictionary <string, string>(); LogHelper.LogError(_logger, Constants.AppName, "Get", "Error Occurred. ", "ChannelManagerController", ex, Constants.InternalErrorStatusCode, null); return(new StatusCodeResult(500)); } }