Esempio n. 1
0
        public async Task <IActionResult> Create([Bind("id,tag_text,tag_type,social_media_count,mobile_app_count,gallery_count")] Tags tags)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tags);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(tags));
        }
Esempio n. 2
0
        public async Task <IActionResult> Create([Bind("id,name,short_description,long_description,icon_url,language,created_at,updated_at")] Result2 result2)
        {
            if (ModelState.IsValid)
            {
                _context.Add(result2);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(result2));
        }
Esempio n. 3
0
        public async Task <IActionResult> Create([Bind("id,organization,account,service_key,short_description,long_description,service_display_name,service_url,language,created_at,updated_at")] Result3 result3)
        {
            if (ModelState.IsValid)
            {
                _context.Add(result3);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(result3));
        }
Esempio n. 4
0
        public async Task <IActionResult> Create([Bind("id,name,info_url,mobile_app_count,social_media_count,gallery_count")] Result result)
        {
            if (ModelState.IsValid)
            {
                _context.Add(result);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(result));
        }