public IActionResult Get(string name) { SearchClient.Response response = new SearchClient.Response(); response.Clients = _db.Client.Where(e => e.Name == name).ToList().Select <Client, SearchClient.Client>(e => e).ToList(); return(Ok(response)); }
public IActionResult Get(Guid id) { SearchClient.Response response = new SearchClient.Response(); response.Clients = _db.Client.Where(e => e.Id == id).ToList().Select <Client, SearchClient.Client>(e => e).ToList(); return(Ok(response)); }