예제 #1
0
 public int Insert(UsersEntity user)
 {
     using (var db = new SqlConnection(_config))
     {
         const string sql = "INSERT INTO Users (FirstName, LastName, Email, UserType, EafAccount, OrganizationId) " +
                            "VALUES(@FirstName, @LastName, @Email, @UserType, @EafAccount, @OrganizationId)";
         return(db.Execute(sql, user));
     }
 }
예제 #2
0
 public void Create(UsersEntity user)
 {
     var insert = _userRepo.Insert(user);
 }