//[ValidateAntiForgeryToken]
        public ActionResult AddToCart(HomeServicesViewModel model, int InstrumentId)
        {
            var userId       = User.Identity.GetUserId();
            var shoppingList = new List <ShoppingCart>();

            foreach (var service in model.Services)
            {
                if (service.IsChecked)
                {
                    shoppingList.Add(new ShoppingCart()
                    {
                        ApplicationUserId = userId,
                        ServiceId         = service.ServiceId,
                        InstrumentId      = InstrumentId
                    });
                }
            }

            if (!string.IsNullOrWhiteSpace(model.Message))
            {
                shoppingList.Add(new ShoppingCart()
                {
                    ApplicationUserId  = userId,
                    ServiceDescription = model.Message,
                    InstrumentId       = InstrumentId
                });
            }

            _context.ShoppingCarts.AddRange(shoppingList);
            _context.SaveChanges();

            return(RedirectToAction("Index"));
        }
        public ActionResult Services()
        {
            var model = new HomeServicesViewModel()
            {
                Instruments = _context.Instruments.ToList()
            };

            return(View(model));
        }