public IActionResult GetS2SearchResultCount(IEnumerable <SearchS2RequestData> _objReqData) { string result = string.Empty; try { List <SearchS2RequestData> _objLstReqData = new List <SearchS2RequestData>(); string jsonData = JsonConvert.SerializeObject(_objReqData); _objLstReqData = JsonConvert.DeserializeObject <List <SearchS2RequestData> >(jsonData); if (_objLstReqData != null) { SearchS2RequestData _objReqsearchS2 = _objLstReqData.FirstOrDefault(); result = _sObj.GetS2SearchResultCount(_objReqsearchS2); } } catch (Exception ex) { return(BadRequest(ex.Message.ToString())); } return(Ok(new { Response = result })); }
public IActionResult GetFilteredEntityBySportForS2(IEnumerable <SearchS2RequestData> _objReqData) { string result = string.Empty; try { QueryContainer _objNestedquery = new QueryContainer(); MatchDetail _objMatchDetail = null; List <SearchS2RequestData> _objReqSearchS2Data = new List <SearchS2RequestData>(); string jsonData = JsonConvert.SerializeObject(_objReqData); _objReqSearchS2Data = JsonConvert.DeserializeObject <List <SearchS2RequestData> >(jsonData); if (_objReqData != null) { SearchS2RequestData _objReqEntityS2 = _objReqData.FirstOrDefault(); result = _sObj.GetFilteredEntityBySportForS2(_objReqEntityS2); } } catch (Exception ex) { return(BadRequest(ex.Message.ToString())); } return(Ok(new { Response = result })); }