public async Task <IActionResult> Create([Bind("LineID,GoCanSubmissionGUID,FormName")] MySubmissions mySubmissions) { if (ModelState.IsValid) { _context.Add(mySubmissions); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(mySubmissions)); }
public async Task <IActionResult> Create([Bind("LineID,BadgeID,FirstName,LastName,Username,Location,Active,Suspended")] CatchWatchEmployee CatchWatchEmployee) { if (ModelState.IsValid) { _context.Add(CatchWatchEmployee); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(CatchWatchEmployee)); }