public HttpResponseMessage Get([FromBody] string[] schemas) { try { Log.Info($"Get providers [Begin]: schemas - {string.Join(" ", schemas)}"); List <appDetails> resultModel = _appService.GetProviders(schemas, LoggedInApplication); Log.Info($"Get providers [End]: result - {JsonConvert.SerializeObject(resultModel)}"); if (!resultModel.Any()) { return(Request.CreateResponse(HttpStatusCode.NotFound)); } return(Request.CreateResponse(HttpStatusCode.OK, resultModel)); } catch (Exception ex) { Log.Error(ex); return(Request.CreateResponse(HttpStatusCode.BadRequest, ex.Message)); } }