Exemple #1
0
        public async Task <IActionResult> CreateNewGift(Gift gift)
        {
            CreateDefaultPropertiesForGift(gift);
            _gift.Add(gift);
            await _gift.SaveChangesAsync();

            getGiftByBrandId();
            return(View("ManageGift"));
        }