public async Task <JsonResult> GetTripByRoute(int routeId) { var trips = await Logical.GetTripByRoute(routeId); trips.Item1.Object = trips.Item1.Object.Where(x => x.AvailableOnline.Equals(true)).ToList(); return(new JsonResult { Data = trips, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }