public IActionResult GetNotes([FromQuery] double x, [FromQuery] double y) { var notes = remarkService.GetNotesByLocation(GeometryPoint.Create(x, y)); //var notes = new[] { // new Note { Id = 1, Body = "Note A", Location = GeometryPoint.Create(-122.12, 47.67), Owner = new UserInfo { Username = "******" } }, // new Note { Id = 2, Body = "Note B", Location = GeometryPoint.Create(-122.13, 47.68), Owner = new UserInfo { Username = "******" } } //}; return(Ok(notes.Select(n => new Model.Note( id: n.Id, body: n.Body, x: (n.Location as GeometryPoint).X, y: (n.Location as GeometryPoint).Y, owner: n.Owner )))); }