public string GetValues() { string texto = "Id: " + EmployeeId + Environment.NewLine; texto += "Nombre: " + EmployeeName + Environment.NewLine; texto += "Salario: " + EmployeeSalary.ToString() + Environment.NewLine; texto += "Puesto: " + EmployeePosition + Environment.NewLine; return(texto); }
public override string ToString() { return($"Employee Name: {EmployeeName}, Employee Designation: {EmployeeDesignation}, Employee Salary: {EmployeeSalary.ToString()}"); }