public override void Execute() { int employeeId = int.Parse(Parameters[0]); string address = String.Join(" ", Parameters.Skip(1)); employeeController.SetAddress(employeeId, address); Console.WriteLine($"Address for employee #{employeeId} updated."); }
public string Execute(string[] args) { int id = int.Parse(args[0]); string address = args[1]; employeeController.SetAddress(id, address); return("Address chanegd succesfully!"); }
public string Execute(string[] args) { int employeeId = int.Parse(args[0]); string address = args[1]; employeeController.SetAddress(employeeId, address); return($"Address was added successufully."); }
public string Execute(string[] args) { int id = int.Parse(args[0]); string address = args[1]; _employeeController.SetAddress(id, address); return("Command accomplished syccessfully!"); }