コード例 #1
0
        /// <summary>
        /// Creates a new basket for the user
        /// </summary>
        /// <param name="user">the current user</param>
        public void MakeNewBasket(ApplicationUser user)
        {
            Basket newBasket = new Basket
            {
                UserID     = user.Id,
                IsComplete = false
            };

            _context.AddBasket(newBasket);
        }