private static void UpdateByQuery(IDocumentStore store) { Console.WriteLine("Update for town?"); var city = Console.ReadLine(); Console.WriteLine("Update with bonus?"); var bonus = Console.ReadLine(); var employees = new UpdateUsecase(store).UpdateByCity(city, bonus); Print(employees); }
private static void UpdateById(IDocumentStore store) { Console.WriteLine("Update for Id?"); var id = Console.ReadLine(); Console.WriteLine("Update with bonus?"); var bonus = Console.ReadLine(); var employee = new UpdateUsecase(store).UpdateById(id, bonus); Print(new List <Employee> { employee }); }