public IActionResult DeleteHeadquarters(string Name) { HeadquartersAF dbentry = context.HeadquartersAF.FirstOrDefault(p => p.StaffName == Name); context.deleteEntry(dbentry); return(RedirectToAction(nameof(Home))); }
public IActionResult ModifyHeadquarters(HeadquartersAF entry) { if (ModelState.IsValid) { context.saveEntry(entry); return(RedirectToAction(nameof(CongratulationsEntry))); } else { // there is something wrong with the data values return(View(entry)); } }
public IActionResult HeadquartersAFCreate(HeadquartersAF entry) { context.saveEntry(entry); return(RedirectToAction(nameof(CongratulationsEntry))); }