public async Task <IActionResult> Create([Bind("ID,Title,url,Minister")] YwaviAudioMessages ywaviAudioMessages)
        {
            if (ModelState.IsValid)
            {
                _context.Add(ywaviAudioMessages);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(ywaviAudioMessages));
        }
        public async Task <IActionResult> Create([Bind("ID,Title,url")] MbnPdfMessages mbnPdfMessages)
        {
            if (ModelState.IsValid)
            {
                _context.Add(mbnPdfMessages);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(mbnPdfMessages));
        }
Пример #3
0
        public async Task <IActionResult> Create([Bind("ID,Title,url,Minister,HgrmDataID")] hgrmAudioMessage hgrmAudioMessage)
        {
            if (ModelState.IsValid)
            {
                _context.Add(hgrmAudioMessage);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewData["HgrmDataID"] = new SelectList(_context.HgrmData, "ID", "ID", hgrmAudioMessage.HgrmDataID);
            return(View(hgrmAudioMessage));
        }