private void SetProperties(string name, string surname, string password, DateTime birthDate, string phoneNumber, string email, AdminJob job) { Name = name; Surname = surname; Password = password; BirthDate = birthDate; PhoneNumber = phoneNumber; Email = email; Job = job; }
public Admin(int id, string name, string surname, string password, DateTime birthDate, string phoneNumber, string email, AdminJob job) { Id = id; SetProperties(name, surname, password, birthDate, phoneNumber, email, job); }