/// <summary> /// Returns the nearest lender within a specified radius /// </summary> /// <param name="latitude"></param> /// <param name="longitude"></param> /// <param name="radius"></param> /// <returns></returns> public static LenderModel GetNearestLenderInRadius(double latitude, double longitude, double radius) { var dc = new BicikliDataClassesDataContext(); return (from l in dc.GetLendersByDistance(latitude, longitude, radius) select new LenderModel() { id = l.id }).FirstOrDefault(); }