Ejemplo n.º 1
0
        public void CreateVip(CreateVipRequest request)
        {
            var member = new VIPMember(request.CompanyID, request.Phone, request.Nickname, 0, request.Levelid, string.Empty, request.Remark, true, request.Gender, request.Birthday, System.DateTime.Now, System.DateTime.Now, "", "");

            this.cmd.Insert(member);
            this.cmd.SaveChanges();
        }
Ejemplo n.º 2
0
    static void Main(string[] args)
    {
        Member[] clubMembers = new Member[5];
        clubMembers[0] = new NormalMember("Special Rate", "James", 1, 2010);
        clubMembers[1] = new NormalMember("Normal Rate", "Andy", 2, 2011);
        clubMembers[2] = new NormalMember("Normal Rate", "Bill", 3, 2011);
        clubMembers[3] = new VIPMember("Carol", 4, 2012);
        clubMembers[4] = new VIPMember("Evelyn", 4, 2012);

        foreach (Member m in clubMembers)
        {
            m.CalculateAnnualFee();
            Console.WriteLine(m.ToString());
        }
        Console.ReadLine();
    }