public IHttpActionResult GetFlightsByFilters([FromUri] string fromCountry = "", [FromUri] string toCountry = "", [FromUri] string flightNumber = "", [FromUri] string byCompany = "", [FromUri] string depInHours = "", [FromUri] string landInHours = "", [FromUri] string flightDurationByHours = "", [FromUri] string fromDepDate = "", [FromUri] string upToDepDate = "", [FromUri] string fromLandDate = "", [FromUri] string upToLandDate = "", [FromUri] bool onlyVacancy = true) { //return StatusCode(HttpStatusCode.NotFound); IHttpActionResult result = controllersCenter.ExecuteSafe(() => { IList <Flight> resultFlightsSearch = facade.GetFlightsByFilters(fromCountry, toCountry, flightNumber, byCompany, depInHours, landInHours, flightDurationByHours, fromDepDate, upToDepDate, fromLandDate, upToLandDate, onlyVacancy); if (resultFlightsSearch.Count < 1) { return(Content(HttpStatusCode.NoContent, "No Flight Found Matching Sent Parameters.")); } return(Content(HttpStatusCode.OK, resultFlightsSearch)); }); return(result); // for debug - break point here }