public async Task <IActionResult> PutTblEmployee(int id, TblEmployee tblEmployee) { if (id != tblEmployee.EmployeeId) { return(BadRequest()); } _context.Entry(tblEmployee).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TblEmployeeExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }