public async Task <IActionResult> Create([Bind("Id,Name,Address,Postcode,Latitude,Longitude")] Place place) { if (ModelState.IsValid) { _context.Add(place); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(place)); }
public async Task <IActionResult> Create([Bind("Id,Password")] Account account) { if (ModelState.IsValid) { _context.Add(account); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(account)); }