﻿using OKHOSTING.Data.Validation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OKHOSTING.ConsoleApp
{
	public class Subject
	{
		public Guid Id { get; set; }

		public string Name { get; set; }

		[RequiredValidator]
		public Teacher teacher { get; set; }

		public IEnumerable<StudentsSubjects> Students { get; set; }

		public IEnumerable<Task> Tasks { get; set; }

		public override string ToString()
		{
			return Name;
		}
	}
}
