public ActionResult List(double Latitude, double Longitude, double Accuracy) { var model = new LandingListModel(); model.NearbyMsqs = ucMsq.GetNearbyMsqs(Latitude, Longitude, Accuracy, null).ToList(); model.NearbyTables = ucTable.GetNearbyTables(Latitude, Longitude, Accuracy); return(View(model)); }
public IEnumerable <BaseMsq> GetNearbyMsqs( double Latitude, double Longitude, double Accuracy, double?Radius, int?skip, int?take) { var rawmodel = uc.GetNearbyMsqs(Latitude, Longitude, Accuracy, Radius); if (skip.HasValue) { rawmodel = rawmodel.Skip(skip.Value); } if (take.HasValue) { rawmodel = rawmodel.Take(take.Value); } return(rawmodel .ToList() .Select(m => new BaseMsq(m.Item)).AsEnumerable()); }