public async Task <IActionResult> SearchByPhoneNumber(SearchClientView model)
        {
            if (model is null)
            {
                return(RedirectToAction("Search"));
            }

            try
            {
                var client = await _searchClient.SearchByPhoneNumberAsync(model.PhoneNumber);

                return(RedirectToAction("View", new { controller = "Client", id = client.Id }));
            }
            catch (ClientNotFoundException)
            {
                return(RedirectToAction("Search"));
            }
        }