public static SearchPersonResponse Unmarshall(UnmarshallerContext _ctx) { SearchPersonResponse searchPersonResponse = new SearchPersonResponse(); searchPersonResponse.HttpResponse = _ctx.HttpResponse; return(searchPersonResponse); }
public SearchPersonResponse Search([FromBody] SearchPersonRequest request) { SearchPersonResponse searchResponse = new SearchPersonResponse { Persons = new List <Person>(), }; searchResponse.Persons = _personSearch.Execute(request.SearchCriteria); return(searchResponse); }
public async Task <SearchPersonResponse> SearchPerson(SearchPersonRequest request) { SearchPersonResponse searchPersonResponse = new SearchPersonResponse(); try { searchPersonResponse = (await App.Database.SearchPerson(new SearchPersonRequest { Query = request.Query })); } catch (Exception e) { await _dialogService.ShowMessage($"The server returned an error: {e.Message}", "Error", "OK", null); } return(searchPersonResponse); }