public EmployeeViewModel AddEmployee(EmployeeViewModel input, CancellationToken ct = default(CancellationToken)) { using (var bus = _IElasticConnection.GetBus()) { Console.WriteLine("Enter a message. 'Quit' to quit."); bus.Publish(new Employee { //Id =input.Id, FirstName = input.FirstName, LastName = input.LastName }); // bus.Dispose(); } return(input); // throw new NotImplementedException(); }