public EmployeeEntity(string name, string designation, string email, double salary) { this.Name = name; this.Designation = designation; if (Designation.ToLower() == "admin") { int temp = EmployeeRepository.GetValueForEmployeeId() + 1; this.Id = "a-" + temp; } else if (Designation.ToLower() == "manager") { int temp = EmployeeRepository.GetValueForEmployeeId() + 1; this.Id = "m-" + temp; } else if (Designation.ToLower() == "seller") { int temp = EmployeeRepository.GetValueForEmployeeId() + 1; this.Id = "s-" + temp; } else { { int temp = EmployeeRepository.GetValueForEmployeeId() + 1; this.Id = "e-" + temp; } } this.Email = email; this.Salary = salary; }