diff --git a/Bootstrap.DataAccess/User.cs b/Bootstrap.DataAccess/User.cs index ce8becd3..c088c3f5 100644 --- a/Bootstrap.DataAccess/User.cs +++ b/Bootstrap.DataAccess/User.cs @@ -218,7 +218,7 @@ namespace Bootstrap.DataAccess try { db.BeginTransaction(); - if (!db.Exists("where UserName = @0", user.UserName)) + if (!db.Exists("UserName = @0", user.UserName)) { db.Insert(user); db.Execute("insert into UserRole (UserID, RoleID) select ID, (select ID from Roles where RoleName = 'Default') RoleId from Users where UserName = @0", user.UserName);