public Member Add_Members(Member data) { _context.Add(data); _context.SaveChanges(); return(data); }
public async Task <IActionResult> Create([Bind("Id,FName,LName,CClassification,skill")] Member member) { if (ModelState.IsValid) { _context.Add(member); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(member)); }
public async Task <IActionResult> Create([Bind("Id,Name,Emai,Birth,Married,Memo,DateTime")] Member member) { if (ModelState.IsValid) { _context.Add(member); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(member)); }