Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Attributes");

            Console.WriteLine("--------------");

            #region 1-Attributes
            Console.WriteLine("1-Attributes");
            CustomerV1 customerV1 = new CustomerV1 {
                Id = 1, LastName = "Doğancıoğlu", Age = 24
            };
            CustomerDalV1 customerDalV1 = new CustomerDalV1();
            customerDalV1.Add(customerV1);
            #endregion

            Console.WriteLine("--------------");

            #region 2-Attributes Özellikleri
            Console.WriteLine("2-Attributes Özellikleri");
            #endregion

            Console.ReadLine();
        }
Пример #2
0
 public void AddNew(CustomerV1 customer)
 {
     Console.WriteLine("{0},{1},{2},{3} added ! ", customer.Id, customer.FirstName, customer.LastName, customer.Age);
 }