예제 #1
0
        public static void addToCart(string itemNumber, int qty, string empNumber)
        {
            UniversityStoreEntities context = new UniversityStoreEntities();
            RequestStationaryCart   c       = new RequestStationaryCart();

            c.EmployeeNumber = empNumber;
            c.ItemCode       = itemNumber;
            c.Quantity       = Convert.ToInt32(qty);

            context.AddToRequestStationaryCarts(c);

            context.SaveChanges();
        }