public async Task <ActionResult> Create(Flavor flavor, int TreatId)
        {
            var userId      = this.User.FindFirst(ClaimTypes.NameIdentifier)?.Value;
            var currentUser = await _userManager.FindByIdAsync(userId);

            flavor.User = currentUser;
            _dataBase.Flavors.Add(flavor);
            if (TreatId != 0)
            {
                _dataBase.TreatFlavors.Add(new TreatFlavor()
                {
                    TreatId = TreatId, FlavorId = flavor.FlavorId
                });
            }
            _dataBase.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Create(Treat new_treat)
 {
     _dataBase.Treats.Add(new_treat);
     _dataBase.SaveChanges();
     return(RedirectToAction("Index"));
 }