Esempio n. 1
0
        public async Task <IActionResult> CreatePurpose(Purpose purpose)
        {
            db.Purposes.Add(purpose);
            await db.SaveChangesAsync();

            return(RedirectToActionPermanent("Index"));
        }
Esempio n. 2
0
        public async Task <IActionResult> CreateCustomList(CustomList customList)
        {
            db.CustomLists.Add(customList);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index", "Home"));
        }