public ActionResult GetOrganisations(double?lat, double?lng, double?radius, [FromQuery] string[] activity, [FromQuery] string[] disabilitySupport, [FromQuery] string[] source, [FromQuery] string[] tag, [FromQuery] string[] excludeTag, string gender = null, long?minAge = null, long?maxAge = null, long?page = 1, long?limit = 50, string from = null, string to = null) { #region Variable declaration or assignment lat = lat ?? defaultLatitude; lng = lng ?? defaultLongitude; radius = radius ?? defaultRadius; string sources = null; string tags = null; string excludeTags = null; string activities = null; string disabilitySupports = null; if (source.Length > 0) { sources = string.Join(",", source); } if (tag.Length > 0) { tags = string.Join(",", tag); } if (excludeTag.Length > 0) { excludeTags = string.Join(",", excludeTag); } if (activity.Length > 0) { activities = string.Join(",", activity); } if (disabilitySupport.Length > 0) { disabilitySupports = string.Join(",", disabilitySupport); } if (page == null || page == 0) { page = 1; } if (limit == null || limit == 0) { limit = 50; } #endregion string Model = string.Concat("{lat:", lat, " ,lng:", lng, " ,radius:", radius, " , sources:", sources, " , tags:", tags, " , excludeTags:", excludeTags, " , activities:", activities, " ,page:", page, " , limit:", limit, "}"); LogHelper.InsertServiceLogs("search/organisations (GetOrganisations)", Model); var organisations = FeedHelper.GetOrganisations(lat, lng, radius, activities, disabilitySupports, gender, minAge, maxAge, page, limit, from, to, sources, tags, excludeTags); return(Ok(organisations)); }