Ejemplo n.º 1
0
 public async ValueTask <CustomersJson> GetCustomerById(GetCustomerByIdCommandInput command)
 {
     return(await Task.FromResult(_listClientesJson.Where(x => x.Id == command.IdCustomer).FirstOrDefault()));
 }
        public async ValueTask <Customer> GetCustomerById(GetCustomerByIdCommandInput command)
        {
            var customers = JsonConvert.DeserializeObject <CustomerQuery>(CustomerResource.Customers);

            return(await Task.FromResult(customers.Clientes.Where(x => x.Id == command.IdCustomer).FirstOrDefault()));
        }