Esempio n. 1
0
        /// <summary>
        /// Find client by id
        /// </summary>
        /// <param name="clientId"></param>
        /// <returns></returns>
        public async Task <Client> FindClientByIdAsync(string clientId)
        {
            var clients = await _clientsService.GetAllClientsAsync();

            var client = clients?.FirstOrDefault(x => x.ClientId.Equals(clientId));

            return(client?.ToModel());
        }