public async Task <IActionResult> Create([Bind("Id,Mac,Type,Name,Location")] Gateways gateways) { if (ModelState.IsValid) { _context.Add(gateways); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(gateways)); }
public async Task <IActionResult> Create([Bind("Id,Name,Location,Phone")] Persons persons) { if (ModelState.IsValid) { _context.Add(persons); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(persons)); }
public async Task <IActionResult> Create([Bind("Id,Mac,Type,Name,Location,Date,Rssi1,Rssi2,Rssi3,Rssi4")] Beacons beacons) { if (ModelState.IsValid) { _context.Add(beacons); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(beacons)); }