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)); }
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)); }
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)); }
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)); }