public async Task <IActionResult> Create([Bind("ID,Name")] Project project) { if (ModelState.IsValid) { _context.Add(project); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(project)); }
public async Task <IActionResult> Create([Bind("ID,Name,Description,Status,Priority")] BugPage bugPage) { if (ModelState.IsValid) { _context.Add(bugPage); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(bugPage)); }