public ClientViewModel(Guid id, string name, string phone, ActiveEnum active) { Id = id; Name = name; Phone = phone; Active = active; }
public Person(string name, int phone, string email, ActiveEnum isActive) { Name = name; Phone = phone; Email = email; IsActive = isActive; }
public void ToInactive() { if (Active != ActiveEnum.Ativo) { throw new Exception("Estado inválido."); } Active = ActiveEnum.Inativo; }
public Payment(Guid id, decimal value, PaymentMethodEnum paymentMethod, bool?portion, int?quantity, DateTime paymentDate, ActiveEnum active, Guid idProject, Project project) { Id = id; Value = value; PaymentMethod = paymentMethod; Portion = portion; Quantity = quantity; PaymentDate = paymentDate; Active = active; IdProject = idProject; Project = project; }
public Teacher(string name, int phone, string email, double salary, ActiveEnum isActive, int ID, SubjectTaughtEnum subject) : base(name, phone, email, isActive, salary) { TeacherID = ID; Subject = subject; }
public Student(string name, int phone, string email, ActiveEnum isActive, StudentStatusEnum status, int studentId) : base(name, phone, email, isActive) { Status = status; StudentID = studentId; }
public Employee(string name, int phone, string email, ActiveEnum isActive, double salary) : base(name, phone, email, isActive) { Salary = salary; }