Exemple #1
0
        public async Task <IActionResult> Create([Bind("ProjectId,Name")] Project project)
        {
            if (ModelState.IsValid)
            {
                _context.Add(project);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(project));
        }
Exemple #2
0
        public async Task <IActionResult> Create([Bind("ReleaseId,Name,Closed")] Release release)
        {
            if (ModelState.IsValid)
            {
                _context.Add(release);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(release));
        }
Exemple #3
0
        public async Task <IActionResult> Create([Bind("MemberId,Name")] Member member)
        {
            if (ModelState.IsValid)
            {
                _context.Add(member);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(member));
        }
Exemple #4
0
        public async Task <IActionResult> Create([Bind("OutputId,ProcessOutput")] Output output)
        {
            if (ModelState.IsValid)
            {
                _context.Add(output);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(output));
        }