public async Task <IActionResult> Create([Bind("UserId,FirstName,LastName,EndlasEmail,AuthString")] Employee employee) { if (ModelState.IsValid) { employee.UserId = Guid.NewGuid(); // **** HASH AUTH STRING **** employee.AuthString = Utility.Security.ComputeSha256Hash(employee.AuthString); SetUIDs(); await _repo.AddEmployee(employee); return(RedirectToAction(nameof(Index))); } return(View(employee)); }