public IActionResult PostUser(string username, string password) { try { _userLogin.CreateUser(username, password); var userGuid = _userLogin.GetUserGuid(username, password); _adapterRepo.CreateUser(username, userGuid); return(RedirectToAction(nameof(GetUser), new { userGuid })); } catch (Exception) { return(BadRequest("Could Not Create User")); } }