using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace helloWorld
{
    class QuanLyDS
    {
        private List<SinhVien> DS = new List<SinhVien>();

        public void addDS( SinhVien SV)
        {
            this.DS.Add(SV);
        }

        public List<SinhVien> getDSByName(string kw)
        {
            return this.DS.Where(p => p.HoTen.Contains(kw)).OrderBy(p => p.HoTen).ToList();
        }

        public void showDS()
        {
            this.DS.ForEach(p => Console.WriteLine(p));
        }


    }

}